Skip to content

Commit

Permalink
Merge pull request #11 from florianv/russian
Browse files Browse the repository at this point in the history
Added RussianCentralBank to the doc
  • Loading branch information
florianv authored Dec 10, 2016
2 parents 032494c + 75fb823 commit de69d68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ php:
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm

sudo: false
Expand Down
2 changes: 2 additions & 0 deletions doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -282,5 +283,6 @@ $service = new Chain([
new WebserviceX(),
new Xignite($client, null, ['token' => 'token']),
new Yahoo()
new RussianCentralBank()
]);
```
2 changes: 1 addition & 1 deletion tests/Tests/Service/WebserviceXTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
}

0 comments on commit de69d68

Please sign in to comment.