8000
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 d78481c commit 85ef2a3Copy full SHA for 85ef2a3
src/Symfony/Bridge/Doctrine/Tests/Types/DatePointTypeTest.php
@@ -76,6 +76,14 @@ public function testDateTimeImmutableConvertsToPHPValue()
76
$this->assertSame($expected->format($format), $actual->format($format));
77
}
78
79
+ public function testDatabaseValueConvertsToPHPValue()
80
+ {
81
+ $actual = $this->type->convertToPHPValue('2025-03-03 12:13:14', new PostgreSQLPlatform());
82
+
83
+ $this->assertInstanceOf(DatePoint::class, $actual);
84
+ $this->assertSame('2025-03-03 12:13:14', $actual->format('Y-m-d H:i:s'));
85
+ }
86
87
public function testGetName()
88
{
89
$this->assertSame('date_point', $this->type->getName());
0 commit comments