Valinor/tests/Unit/Mapper/Object/DateTimeObjectBuilderTest.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);
}
}