Skip to content

Commit

Permalink
Merge pull request #218 from lord2800/fix/despecify-test
Browse files Browse the repository at this point in the history
Fix the time test to compare the timestamps directly
  • Loading branch information
bookernath authored Mar 21, 2018
2 parents e57fc7a + 207f925 commit 6016f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Unit/Api/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function testGetTimeReturnsTheExpectedTime()
->with($this->basePath . '/time', false)
->will($this->returnValue((object)array('time' => $now->format('U'))));

$this->assertEquals($now, Client::getTime());
$this->assertEquals($now->format('U'), Client::getTime()->format('U'));
}

public function testGetStoreReturnsTheResultBodyDirectly()
Expand Down

0 comments on commit 6016f47

Please sign in to comment.