diff --git a/.travis.yml b/.travis.yml index 97e8fe2..1621da3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ php: - 5.5 - 5.6 - 7.0 + - 7.1 - hhvm sudo: false diff --git a/doc/readme.md b/doc/readme.md index 91767b9..006f6c9 100644 --- a/doc/readme.md +++ b/doc/readme.md @@ -268,6 +268,7 @@ use Exchanger\Service\PhpArray; use Exchanger\Service\WebserviceX; use Exchanger\Service\Xignite; use Exchanger\Service\Yahoo; +use Exchanger\Service\RussianCentralBank; $service = new Chain([ new CentralBankOfCzechRepublic(), @@ -282,5 +283,6 @@ $service = new Chain([ new WebserviceX(), new Xignite($client, null, ['token' => 'token']), new Yahoo() + new RussianCentralBank() ]); ``` 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')); } }