TextReporter::paintFail PHP Method

paintFail() public method

Paints the test failure as a stack trace.
public paintFail ( string $message )
$message string Failure message displayed in the context of the other tests.
    public function paintFail($message)
    {
        parent::paintFail($message);
        print $this->getFailCount() . ") {$message}\n";
        $breadcrumb = $this->getTestList();
        array_shift($breadcrumb);
        print "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
        print "\n";
    }

Usage Example

 function paintFail($message)
 {
     parent::paintFail($message);
     $this->failed_tests[] = '[FLR] ' . $this->_extractErrorFileAndLine($message);
 }
All Usage Examples Of TextReporter::paintFail