Skip to content

Commit

Permalink
[HttpKernel] fixed some unit tests that can fail
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 22, 2011
1 parent cc8f308 commit 0fa9e4c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -107,12 +107,12 @@ public function testEnsureStopped()
public function testStartTime()
{
$event = new StopwatchEvent(microtime(true) * 1000);
$this->assertEquals(0, $event->getStartTime());
$this->assertTrue($event->getStartTime() < 0.5);

$event = new StopwatchEvent(microtime(true) * 1000);
$event->start();
$event->stop();
$this->assertEquals(0, $event->getStartTime());
$this->assertTrue($event->getStartTime() < 1);

$event = new StopwatchEvent(microtime(true) * 1000);
$event->start();
Expand Down

0 comments on commit 0fa9e4c

Please sign in to comment.