protected function outputError($errorNumber, TestInterface $test, $exception)
    {
        $this->output->writeln(sprintf("  %d)%s:", $errorNumber, $test->getTitle()));

        $message = sprintf("     %s", str_replace(PHP_EOL, PHP_EOL . "     ", $exception->getMessage()));
        $this->output->writeln($this->color('error', $message));

        $location = sprintf('     at %s:%d', $exception->getFile(), $exception->getLine());
        $this->output->writeln($location);

        $this->outputTrace($exception->getTrace());
    }
protected function outputError($errorNumber, TestInterface $test, $exception)
    {
        $this->output->writeln(sprintf("  %d)%s:", $errorNumber, $test->getTitle()));

        $message = sprintf("     %s", str_replace(PHP_EOL, PHP_EOL . "     ", $exception->getMessage()));
        $this->output->writeln($this->color('error', $message));

        $location = sprintf('     at %s:%d', $exception->getFile(), $exception->getLine());
        $this->output->writeln($location);

        $this->outputTrace($exception->getTrace());
    }
protected function outputError ( $ errorNumber , TestInterface $ test , $ exception ) { $ this -> output -> writeln ( sprintf ( "  %d)%s:" , $ errorNumber , $ test -> getTitle ( ) ) ) ; $ message = sprintf ( "     %s" , str_replace ( PHP_EOL , PHP_EOL . "     " , $ exception -> getMessage ( ) ) ) ; $ this -> output -> writeln ( $ this -> color ( 'error' , $ message ) ) ; $ location = sprintf ( '     at %s:%d' , $ exception -> getFile ( ) , $ exception -> getLine ( ) ) ; $ this -> output -> writeln ( $ location ) ; $ this -> outputTrace ( $ exception -> getTrace ( ) ) ; }
Output a test failure.

@param int $errorNumber
@param TestInterface $test
@param $exception - an exception like interface with ->getMessage(), ->getTrace()
Output a test failure .