mailgun-php/tests/Model/EmailValidation/PartsTest.php
2019-01-10 22:15:40 +00:00

24 lines
620 B
PHP

<?php
namespace Mailgun\Tests\Model\EmailValidation;
use Mailgun\Model\EmailValidation\Parts;
class PartsTest extends \PHPUnit_Framework_TestCase
{
public function testPartsConstructor()
{
$data = [
'display_name' => ' Display name',
'domain' => 'Domain',
'local_part' => 'Local Part',
];
$parts = Parts::create($data);
$this->assertEquals($data['display_name'], $parts->getDisplayName());
$this->assertEquals($data['domain'], $parts->getDomain());
$this->assertEquals($data['local_part'], $parts->getLocalPart());
}
}