mirror of
https://github.com/danog/Valinor.git
synced 2024-12-14 10:08:41 +01:00
23 lines
581 B
PHP
23 lines
581 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace CuyZ\Valinor\Tests\Unit\Mapper\Object;
|
|
|
|
use CuyZ\Valinor\Mapper\Object\DateTimeObjectBuilder;
|
|
use DateTimeImmutable;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class DateTimeObjectBuilderTest extends TestCase
|
|
{
|
|
public function test_arguments_instance_stays_the_same(): void
|
|
{
|
|
$objectBuilder = new DateTimeObjectBuilder(DateTimeImmutable::class);
|
|
|
|
$argumentsA = $objectBuilder->describeArguments();
|
|
$argumentsB = $objectBuilder->describeArguments();
|
|
|
|
self::assertSame($argumentsA, $argumentsB);
|
|
}
|
|
}
|