public function testConvertsJsonResponsesToArray() { $client = $this->getClient(); $this->setMockResponse($client, array(new \Guzzle\Http\Message\Response(200, array('Content-Type' => 'application/json'), '{ "key": "Hi!" }'))); $command = new MockCommand(); $command->setClient($client); $command->execute(); $this->assertEquals(array('key' => 'Hi!'), $command->getResult()); }