From 207f9257bf47bbeb6847ff4976bc04f130467675 Mon Sep 17 00:00:00 2001 From: Jeff Hubbard Date: Wed, 21 Mar 2018 10:36:24 -0700 Subject: [PATCH] Fix the time test to compare the timestamps directly --- test/Unit/Api/ClientTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Unit/Api/ClientTest.php b/test/Unit/Api/ClientTest.php index 29f4098b..4349ea90 100644 --- a/test/Unit/Api/ClientTest.php +++ b/test/Unit/Api/ClientTest.php @@ -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()