2013-07-23 09:11:01 +04:00
|
|
|
<?PHP
|
|
|
|
namespace Mailgun\Tests\Connection;
|
|
|
|
|
2013-07-25 03:25:24 +04:00
|
|
|
use Mailgun\Tests\MailgunClientTest;
|
2013-07-23 09:11:01 +04:00
|
|
|
|
|
|
|
class ConnectionTest extends \Mailgun\Tests\MailgunTestCase{
|
2013-07-24 01:29:45 +04:00
|
|
|
|
|
|
|
private $client;
|
|
|
|
|
2013-07-23 09:11:01 +04:00
|
|
|
public function setUp(){
|
2013-07-25 03:25:24 +04:00
|
|
|
$this->client = new MailgunClientTest("My-Super-Awesome-API-Key", "samples.mailgun.org", false);
|
2013-07-23 09:11:01 +04:00
|
|
|
}
|
2013-07-24 01:29:45 +04:00
|
|
|
public function testNewClientConnection(){
|
|
|
|
$result = $this->client->validateCredentials();
|
2013-07-23 09:11:01 +04:00
|
|
|
$this->assertTrue($result);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|