In case of http://localhost:9200/_alias/test the error is a string
public getFullError ( ) : array | string | ||
리턴 | array | string | Error data |
/** * @group unit */ public function testArrayErrorMessage() { $response = new Response(json_encode(array('error' => array('a', 'b')))); $this->assertEquals(array('a', 'b'), $response->getFullError()); }