[Stopwatch] Fix test

This commit is contained in:
Nicolas Grekas 2015-06-30 18:34:54 +02:00
parent 6e1ae53fea
commit 9de0d60b2c
1 changed files with 2 additions and 2 deletions

View File

@ -119,12 +119,12 @@ class StopwatchEventTest extends \PHPUnit_Framework_TestCase
public function testStartTime()
{
$event = new StopwatchEvent(microtime(true) * 1000);
$this->assertLessThan(0.5, $event->getStartTime());
$this->assertLessThanOrEqual(0.5, $event->getStartTime());
$event = new StopwatchEvent(microtime(true) * 1000);
$event->start();
$event->stop();
$this->assertLessThan(1, $event->getStartTime());
$this->assertLessThanOrEqual(1, $event->getStartTime());
$event = new StopwatchEvent(microtime(true) * 1000);
$event->start();