public function PHPUnit_Util_Log_JUnit::addRiskyTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/Util/Log/JUnit.php \PHPUnit_Util_Log_JUnit::addRiskyTest()
Risky test.
@since Method available since Release 4.0.0
Parameters
PHPUnit_Framework_Test $test:
Exception $e:
float $time:
Overrides PHPUnit_Framework_TestListener::addRiskyTest
File
- vendor/
phpunit/ phpunit/ src/ Util/ Log/ JUnit.php, line 222
Class
- PHPUnit_Util_Log_JUnit
- A TestListener that generates a logfile of the test execution in XML markup.
Code
public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time) {
if ($this->logIncompleteSkipped && $this->currentTestCase !== null) {
$error = $this->document
->createElement('error', PHPUnit_Util_XML::prepareString("Risky Test\n" . PHPUnit_Util_Filter::getFilteredStacktrace($e)));
$error
->setAttribute('type', get_class($e));
$this->currentTestCase
->appendChild($error);
$this->testSuiteErrors[$this->testSuiteLevel]++;
}
else {
$this->attachCurrentTestCase = false;
}
}