2018-02-02 02:48:07 +03:00
|
|
|
<?php
|
|
|
|
|
2019-01-12 12:09:22 +03:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-02-02 02:54:22 +03:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Mailgun
|
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms
|
|
|
|
* of the MIT license. See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
2018-02-02 02:48:07 +03:00
|
|
|
namespace Mailgun\Tests\Model\EmailValidation;
|
|
|
|
|
|
|
|
use Mailgun\Model\EmailValidation\Parts;
|
2019-01-10 00:40:29 +03:00
|
|
|
use Mailgun\Tests\Model\BaseModelTest;
|
2018-02-02 02:48:07 +03:00
|
|
|
|
2019-01-10 00:40:29 +03:00
|
|
|
class PartsTest extends BaseModelTest
|
2018-02-02 02:48:07 +03:00
|
|
|
{
|
|
|
|
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());
|
|
|
|
}
|
|
|
|
}
|