original_string: public function _failed(TestInterface $test, $fail)
      {
          if (isset($this->container) && $this->container->has(ErrorHandlerInterface::class)) {
              $error = $this->container->get(ErrorHandlerInterface::class)->getError();
              
              if ($error) {
                  $this->debug((string)$error);
              }
          }
  
          
          parent::_failed($test, $fail);
      }
code: public function _failed(TestInterface $test, $fail)
      {
          if (isset($this->container) && $this->container->has(ErrorHandlerInterface::class)) {
              $error = $this->container->get(ErrorHandlerInterface::class)->getError();
              
              if ($error) {
                  $this->debug((string)$error);
              }
          }
  
          
          parent::_failed($test, $fail);
      }
code_tokens: public function _failed ( TestInterface $ test , $ fail ) { if ( isset ( $ this -> container ) && $ this -> container -> has ( ErrorHandlerInterface :: class ) ) { $ error = $ this -> container -> get ( ErrorHandlerInterface :: class ) -> getError ( ) ; if ( $ error ) { $ this -> debug ( ( string ) $ error ) ; } } parent :: _failed ( $ test , $ fail ) ; }
docstring: Called when test fails
  
  @param TestInterface $test
  @param mixed         $fail
docstring_tokens: Called when test fails