mailgun-php/tests/Model/EmailValidation/PartsTest.php
2019-01-12 10:34:44 +00:00

34 lines
834 B
PHP

<?php
declare(strict_types=1);
/*
* Copyright (C) 2013 Mailgun
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Mailgun\Tests\Model\EmailValidation;
use Mailgun\Model\EmailValidation\Parts;
use Mailgun\Tests\Model\BaseModelTest;
class PartsTest extends BaseModelTest
{
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());
}
}