From 9de0d60b2cceda4dd0b0ca27bbde960f8a46bd7c Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 30 Jun 2015 18:34:54 +0200 Subject: [PATCH] [Stopwatch] Fix test --- src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php b/src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php index 18c3f87533..9ef3abaea9 100644 --- a/src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php +++ b/src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php @@ -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();