JohnKary\PHPUnit\Listener\SpeedTrapListener::endTest PHP Method

endTest() public method

A test ended.
public endTest ( PHPUnit_Framework_Test $test, float $time )
$test PHPUnit_Framework_Test
$time float
    public function endTest(\PHPUnit_Framework_Test $test, $time)
    {
        if (!$test instanceof \PHPUnit_Framework_TestCase) {
            return;
        }
        $time = $this->toMilliseconds($time);
        $threshold = $this->getSlowThreshold($test);
        if ($this->isSlow($time, $threshold)) {
            $this->addSlowTest($test, $time);
        }
    }