upgrade idiorm to php8.1-patched version (aaronpk/idiorm)

This commit is contained in:
Andrew Dolgov
2022-07-12 22:26:21 +03:00
parent 4b61618920
commit 80d3db1dcf
189 changed files with 17077 additions and 12739 deletions

View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
use PHPUnit\Framework\TestCase;
final class DateTimeImmutableTest extends TestCase
{
public function testCreateFromMutable(): void
{
$unsafeDate = new \DateTime('2021-10-16T12:30:16+00:00');
$safeImmutableDate = \Safe\DateTimeImmutable::createFromMutable($unsafeDate);
self::assertSame($unsafeDate->format(\DateTimeInterface::ATOM), $safeImmutableDate->format(\DateTimeInterface::ATOM));
$safeDate = new \Safe\DateTime('2021-10-16T12:30:16+00:00');
$safeImmutableDate = \Safe\DateTimeImmutable::createFromMutable($safeDate);
self::assertSame($safeDate->format(\DateTimeInterface::ATOM), $safeImmutableDate->format(\DateTimeInterface::ATOM));
}
}