We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 742dce6 commit 3e2837fCopy full SHA for 3e2837f
tests/Phinx/Db/Adapter/SqlServerAdapterTest.php
@@ -1367,8 +1367,8 @@ public function testBulkInsertDates(): void
1367
$rows = $this->adapter->fetchAll('SELECT * FROM table1');
1368
$this->assertEquals('foo', $rows[0]['name']);
1369
$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']);
+ $this->assertEquals($data[0]['created']->format('Y-m-d H:i:s.v'), $rows[0]['created']);
+ $this->assertEquals($data[1]['created']->format('Y-m-d H:i:s.v'), $rows[1]['created']);
1372
}
1373
1374
public function testInsertData()
0 commit comments