public function getFullError() { $response = $this->getData(); if (isset($response['error'])) { return $response['error']; } }
/** * @group unit */ public function testArrayErrorMessage() { $response = new Response(json_encode(array('error' => array('a', 'b')))); $this->assertEquals(array('a', 'b'), $response->getFullError()); }