atk4\data\tests\AgileResultPrinter::printDefectTrace PHP Method

printDefectTrace() protected method

protected printDefectTrace ( PHPUnit_Framework_TestFailure $defect )
$defect PHPUnit_Framework_TestFailure
    protected function printDefectTrace(\PHPUnit_Framework_TestFailure $defect)
    {
        $e = $defect->thrownException();
        if (!$e instanceof AgileExceptionWrapper) {
            return parent::printDefectTrace($defect);
        }
        $this->write((string) $e);
        $p = $e->getPrevious();
        if ($p instanceof \atk4\core\Exception or $p instanceof \atk4\dsql\Exception) {
            $this->write($p->getColorfulText());
        }
    }
AgileResultPrinter