original_string: protected function seeError(string $error, int $status = null)
      {
          if (! is_null($status)) {
              $this->seeStatusCode($status);
          }
  
          if ($this->app->config->get('responder.status_code')) {
              $this->seeJson([
                  'status' => $status
              ]);
          }
  
          return $this->seeJson([
              'success' => false
          ])->seeJsonSubset([
              'error' => [
                  'code' => $error
              ]
          ]);
      }
code: protected function seeError(string $error, int $status = null)
      {
          if (! is_null($status)) {
              $this->seeStatusCode($status);
          }
  
          if ($this->app->config->get('responder.status_code')) {
              $this->seeJson([
                  'status' => $status
              ]);
          }
  
          return $this->seeJson([
              'success' => false
          ])->seeJsonSubset([
              'error' => [
                  'code' => $error
              ]
          ]);
      }
code_tokens: protected function seeError ( string $ error , int $ status = null ) { if ( ! is_null ( $ status ) ) { $ this -> seeStatusCode ( $ status ) ; } if ( $ this -> app -> config -> get ( 'responder.status_code' ) ) { $ this -> seeJson ( [ 'status' => $ status ] ) ; } return $ this -> seeJson ( [ 'success' => false ] ) -> seeJsonSubset ( [ 'error' => [ 'code' => $ error ] ] ) ; }
docstring: Assert that the response is a valid error response.
  
  @param  string   $error
  @param  int|null $status
  @return $this
docstring_tokens: Assert that the response is a valid error response .