Skip to content
Browse files

Don't fail tests on microseconds.

PHP7.1 has microseconds on all timestamps, so don't include that as part
of the compared values.
  • Loading branch information...
markstory committed Nov 28, 2016
1 parent e357d59 commit 9baeda972bd65b00bd6ef48b6c549645822dedd8
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/TestCase/ORM/Behavior/TimestampBehaviorTest.php
@@ -395,7 +395,7 @@ public function testSaveTriggersInsert()
$row = $table->find('all')->where(['id' => $entity->id])->first();
$now = Time::now();
$this->assertEquals($now, $row->created);
$this->assertEquals($now, $row->updated);
$this->assertEquals($now->toDateTimeString(), $row->created->toDateTimeString());
$this->assertEquals($now->toDateTimeString(), $row->updated->toDateTimeString());

0 comments on commit 9baeda9

Please sign in to comment.
You can’t perform that action at this time.