public function theResponseShouldContainErrorWithMessage($id, $message)
    {
        Assertions::assertEquals(intval($id), $this->response->getRpcErrorCode());
        Assertions::assertEquals($message, $this->response->getRpcErrorMessage());
    }
public function theResponseShouldContainErrorWithMessage($id, $message)
    {
        Assertions::assertEquals(intval($id), $this->response->getRpcErrorCode());
        Assertions::assertEquals($message, $this->response->getRpcErrorMessage());
    }
public function theResponseShouldContainErrorWithMessage ( $ id , $ message ) { Assertions :: assertEquals ( intval ( $ id ) , $ this -> response -> getRpcErrorCode ( ) ) ; Assertions :: assertEquals ( $ message , $ this -> response -> getRpcErrorMessage ( ) ) ; }
Parse json-rpc error response

@param string|integer $id
@param string         $message

@Then /^(?:the )?response should be error with id "([^"]+)", message "(.+)"$/
Parse json - rpc error response