Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Jul 28, 2024
1 parent 9b409d7 commit 26b19f2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/Integration/Dbal/DbalAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,19 @@ public function test(DbalAdapter $dbal): void
self::assertSame('1', $dbal->escapeBool(true));
self::assertSame('0', $dbal->escapeBool(false));

self::assertSame(
"'1970-01-01 00:00:00.000000'",
self::assertContains(
$dbal->escapeDateTime((new DateTimeImmutable())->setTimestamp(0)),
[
"'1970-01-01 00:00:00'",
"'1970-01-01 00:00:00.000000'",
],
);
self::assertSame(
"'1970-01-01 00:00:00.000000'",
self::assertContains(
$dbal->escapeDateTime((new DateTime())->setTimestamp(0)),
[
"'1970-01-01 00:00:00'",
"'1970-01-01 00:00:00.000000'",
],
);

self::assertSame('1', $dbal->escapeInt(1));
Expand Down

0 comments on commit 26b19f2

Please sign in to comment.