Skip to content
Snippets Groups Projects
Commit f66b2b38 authored by Patrick Barroca's avatar Patrick Barroca
Browse files

rel #18297: tests speedtrap collect class name

parent 4e89245f
Branches
Tags
3 merge requests!896Master,!806Dev#18297 rgaa search result and viewnotice,!805Dev#18297 rgaa search result and viewnotice
......@@ -22,8 +22,7 @@
/**
* @package Tests
*/
class TestSpeedTrap extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener {
class TestSpeedTrap extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener {
protected static $_speed_trapped_test = [],
$_speed_limit = 0.01;
......@@ -41,7 +40,7 @@ class TestSpeedTrap extends PHPUnit_Util_Printer implements PHPUnit_Framework_T
public function endTest(PHPUnit_Framework_Test $test, $length)
{
if ($length > self::$_speed_limit)
$this->collect($test->getName(), round($length, 4));
$this->collect(get_class($test) . '::' . $test->getName(), round($length, 4));
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment