class TimeTest extends TestCase
public function testInTime() : void
// testing duration of a script is not
// a good test method since runtime can be
// affected by other causes.
$time = PHP_Timer::stop();
$message = sprintf('execution time was %s',
$this->assertLessThan(0, $time, $message);
Time: 212 ms, Memory: 16.00 MB
There was 1 error:
Class 'PHP_Timer' not found
Tests: 1, Assertions: 0, Errors: 1.