We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c96c289 commit 90b38fcCopy full SHA for 90b38fc
tests/system/Entity/EntityTest.php
@@ -18,6 +18,7 @@
18
use CodeIgniter\Test\CIUnitTestCase;
19
use CodeIgniter\Test\ReflectionHelper;
20
use DateTime;
21
+use DateTimeInterface;
22
use ReflectionException;
23
use Tests\Support\Entity\Cast\CastBase64;
24
use Tests\Support\Entity\Cast\CastPassParameters;
@@ -408,7 +409,7 @@ public function testCastDateTime()
408
409
410
$entity->eighth = 'March 12, 2017';
411
- $this->assertInstanceOf(DateTime::class, $entity->eighth);
412
+ $this->assertInstanceOf(DateTimeInterface::class, $entity->eighth);
413
$this->assertSame('2017-03-12', $entity->eighth->format('Y-m-d'));
414
}
415
0 commit comments