diff --git a/tests/Tests/Service/EuropeanCentralBankTest.php b/tests/Tests/Service/EuropeanCentralBankTest.php index 4b8569a..feda52b 100644 --- a/tests/Tests/Service/EuropeanCentralBankTest.php +++ b/tests/Tests/Service/EuropeanCentralBankTest.php @@ -72,7 +72,7 @@ public function it_fetches_a_historical_rate_within_90_days_back() $pair = CurrencyPair::createFromString('EUR/JPY'); $service = new EuropeanCentralBank($this->getHttpAdapterMock($url, $content)); - $date = (new \DateTime)->modify('2019-11-29'); + $date = (new \DateTime())->modify('2019-11-29'); $rate = $service->getExchangeRate( new HistoricalExchangeRateQuery($pair, $date)