JohnKary\PHPUnit\Listener\SpeedTrapListener::getSlowThreshold PHP Méthode

getSlowThreshold() protected méthode

The following test will only be considered slow when its execution time reaches 5000ms (5 seconds): \@slowThreshold 5000 public function testLongRunningProcess() }
protected getSlowThreshold ( PHPUnit_Framework_TestCase $test ) : integer
$test PHPUnit_Framework_TestCase
Résultat integer
    protected function getSlowThreshold(\PHPUnit_Framework_TestCase $test)
    {
        $ann = $test->getAnnotations();
        return isset($ann['method']['slowThreshold'][0]) ? $ann['method']['slowThreshold'][0] : $this->slowThreshold;
    }