From 75fb82351612ec0cb2082c5b9de4262ed5c7a2a3 Mon Sep 17 00:00:00 2001 From: florianv Date: Sat, 10 Dec 2016 12:41:52 +0100 Subject: [PATCH] Fixed issue in webservicex test --- tests/Tests/Service/WebserviceXTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Tests/Service/WebserviceXTest.php b/tests/Tests/Service/WebserviceXTest.php index 956acad..760dfb7 100644 --- a/tests/Tests/Service/WebserviceXTest.php +++ b/tests/Tests/Service/WebserviceXTest.php @@ -41,6 +41,6 @@ public function it_fetches_a_rate() $rate = $service->getExchangeRate(new ExchangeRateQuery(CurrencyPair::createFromString('EUR/USD'))); $this->assertEquals('1.3608', $rate->getValue()); - $this->assertEquals(new \DateTime(), $rate->getDate()); + $this->assertEquals((new \DateTime())->format('Y-m-d'), $rate->getDate()->format('Y-m-d')); } }