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);
    }
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);
    }
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 ) ; }
Called when test fails

@param TestInterface $test
@param mixed         $fail
Called when test fails