original_string: public function theResponseShouldContainErrorData($id, $message, TableNode $table)
      {
          Assertions::assertEquals(200, $this->response->getStatusCode());
  
          $this->theResponseShouldContainErrorWithMessage($id, $message);
          $error = $this->getFieldFromBody('error', $this->response->getBody());
  
          Assertions::assertArrayHasKey('data', $error);
          Assertions::assertEquals($table->getRowsHash(), $error['data']);
      }
code: public function theResponseShouldContainErrorData($id, $message, TableNode $table)
      {
          Assertions::assertEquals(200, $this->response->getStatusCode());
  
          $this->theResponseShouldContainErrorWithMessage($id, $message);
          $error = $this->getFieldFromBody('error', $this->response->getBody());
  
          Assertions::assertArrayHasKey('data', $error);
          Assertions::assertEquals($table->getRowsHash(), $error['data']);
      }
code_tokens: public function theResponseShouldContainErrorData ( $ id , $ message , TableNode $ table ) { Assertions :: assertEquals ( 200 , $ this -> response -> getStatusCode ( ) ) ; $ this -> theResponseShouldContainErrorWithMessage ( $ id , $ message ) ; $ error = $ this -> getFieldFromBody ( 'error' , $ this -> response -> getBody ( ) ) ; Assertions :: assertArrayHasKey ( 'data' , $ error ) ; Assertions :: assertEquals ( $ table -> getRowsHash ( ) , $ error [ 'data' ] ) ; }
docstring: Check json-rpc error data
  
  @param string|integer $id
  @param string         $message
  @param TableNode      $table
  
  @Then /^(?:the )?response should be error with id "([^"]+)", message "(.+)", data:$/
docstring_tokens: Check json - rpc error data