mirror of
https://github.com/danog/Valinor.git
synced 2025-01-05 20:28:33 +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);
|
||
|
}
|
||
|
}
|