mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-23 04:56:02 +03:00
22 lines
532 B
PHP
22 lines
532 B
PHP
<?PHP
|
|
|
|
namespace Mailgun\Tests\Address;
|
|
|
|
use Mailgun\Tests\MailgunClientTest;
|
|
|
|
class AddressTest extends \Mailgun\Tests\MailgunTestCase{
|
|
|
|
private $client;
|
|
|
|
public function setUp(){
|
|
$this->client = new MailgunClientTest("My-Super-Awesome-API-Key", "samples.mailgun.org", false);
|
|
|
|
}
|
|
|
|
public function testValidateAddress(){
|
|
$client = $this->client->Address();
|
|
$response = $client->validateAddress("addressvalidation@mailgun.com");
|
|
$httpCode = $response->http_response_code;
|
|
$this->assertEquals(200, $httpCode);
|
|
}
|
|
} |