mailgun-php/tests/Model/EmailValidation/PartsTest.php

24 lines
620 B
PHP
Raw Normal View History

2018-02-02 02:48:07 +03:00
<?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());
}
}