Skip to content

Commit 90b38fc

Browse files
committed
test: update assertion
1 parent c96c289 commit 90b38fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/system/Entity/EntityTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use CodeIgniter\Test\CIUnitTestCase;
1919
use CodeIgniter\Test\ReflectionHelper;
2020
use DateTime;
21+
use DateTimeInterface;
2122
use ReflectionException;
2223
use Tests\Support\Entity\Cast\CastBase64;
2324
use Tests\Support\Entity\Cast\CastPassParameters;
@@ -408,7 +409,7 @@ public function testCastDateTime()
408409

409410
$entity->eighth = 'March 12, 2017';
410411

411-
$this->assertInstanceOf(DateTime::class, $entity->eighth);
412+
$this->assertInstanceOf(DateTimeInterface::class, $entity->eighth);
412413
$this->assertSame('2017-03-12', $entity->eighth->format('Y-m-d'));
413414
}
414415

0 commit comments

Comments
 (0)