Skip to content

Commit 3e2837f

Browse files
committed
Include milliseconds in sqlserver test
Signed-off-by: Matthew Peveler <[email protected]>
1 parent 742dce6 commit 3e2837f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Phinx/Db/Adapter/SqlServerAdapterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,8 +1367,8 @@ public function testBulkInsertDates(): void
13671367
$rows = $this->adapter->fetchAll('SELECT * FROM table1');
13681368
$this->assertEquals('foo', $rows[0]['name']);
13691369
$this->assertEquals('bar', $rows[1]['name']);
1370-
$this->assertEquals($data[0]['created']->toDateTimeString(), $rows[0]['created']);
1371-
$this->assertEquals($data[1]['created']->toDateTimeString(), $rows[1]['created']);
1370+
$this->assertEquals($data[0]['created']->format('Y-m-d H:i:s.v'), $rows[0]['created']);
1371+
$this->assertEquals($data[1]['created']->format('Y-m-d H:i:s.v'), $rows[1]['created']);
13721372
}
13731373

13741374
public function testInsertData()

0 commit comments

Comments
 (0)