Skip to content

Commit

Permalink
update array
Browse files Browse the repository at this point in the history
  • Loading branch information
davewwww committed Sep 30, 2016
1 parent d9f16eb commit 3b5cdd8
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -26,7 +26,9 @@ public function testGetAll()
{
$this->client->expects(self::once())
->method('get')
->willReturn(new Response(200, json_encode(['rates' => ['EUR' => 0.88, 'USD' => 1, 'CHF' => 0.96]])));
->willReturn(new Response(200, json_encode(
array('rates' => array('EUR' => 0.88, 'USD' => 1, 'CHF' => 0.96))
)));

$adapter = new OpenExchangeRateAdapter('foo', $this->client);
$rates = $adapter->getAll();
Expand Down

0 comments on commit 3b5cdd8

Please sign in to comment.