Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00%
0 / 1
0.00%
0 / 1
CRAP
0.00%
0 / 13
ResultPrinter
0.00%
0 / 1
0.00%
0 / 1
20
0.00%
0 / 13
 endTest(\PHPUnit_Framework_Test $test, $time)
0.00%
0 / 1
20
0.00%
0 / 13
<?php
namespace Codeception\PHPUnit;
class ResultPrinter extends \PHPUnit_Util_TestDox_ResultPrinter
{
/**
* A test ended.
*
* @param \PHPUnit_Framework_Test $test
* @param float $time
*/
public function endTest(\PHPUnit_Framework_Test $test, $time)
{
$steps = array();
if ($this->testStatus == \PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) {
$this->successful++;
$success = TRUE;
if ($test instanceof \Codeception\TestCase) $steps = $test->getScenario()->getSteps();
} else {
$success = FALSE;
if ($test instanceof \Codeception\TestCase) $steps = $test->getTrace();;
}
$this->onTest($test->toString(), $success, $steps, $time);
}
}