2020-05-30 15:45:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-06-11 19:21:51 +00:00
|
|
|
namespace Opdavies\Glassboxx\Tests\ValueObject;
|
2020-05-30 15:45:40 +00:00
|
|
|
|
2020-06-11 19:21:51 +00:00
|
|
|
use Opdavies\Glassboxx\Tests\TestCase;
|
2020-05-30 15:45:40 +00:00
|
|
|
use Opdavies\Glassboxx\ValueObject\Customer;
|
|
|
|
|
|
|
|
final class CustomerTest extends TestCase
|
|
|
|
{
|
|
|
|
public function testCreatingACustomer(): void
|
|
|
|
{
|
|
|
|
$customer = new Customer(
|
|
|
|
'Oliver',
|
|
|
|
'Davies',
|
|
|
|
'oliver@oliverdavies.uk'
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->assertSame('Oliver', $customer->getFirstName());
|
|
|
|
$this->assertSame('Davies', $customer->getLastName());
|
|
|
|
$this->assertSame('oliver@oliverdavies.uk', $customer->getEmailAddress());
|
|
|
|
}
|
|
|
|
}
|