Skip to content

Commit

Permalink
[HttpKernel] removed usage of assertCount which has been introduced i…
Browse files Browse the repository at this point in the history
…n PHPUnit 3.6
  • Loading branch information
fabpot committed Oct 23, 2011
1 parent b995023 commit 3134ef1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -43,14 +43,14 @@ public function testGetPeriods()
$event = new StopwatchEvent(microtime(true) * 1000);
$event->start();
$event->stop();
$this->assertCount(1, $event->getPeriods());
$this->assertEquals(1, count($event->getPeriods()));

$event = new StopwatchEvent(microtime(true) * 1000);
$event->start();
$event->stop();
$event->start();
$event->stop();
$this->assertCount(2, $event->getPeriods());
$this->assertEquals(2, count($event->getPeriods()));
}

public function testLap()
Expand All @@ -59,7 +59,7 @@ public function testLap()
$event->start();
$event->lap();
$event->stop();
$this->assertCount(2, $event->getPeriods());
$this->assertEquals(2, count($event->getPeriods()));
}

public function testTotalTime()
Expand Down
Expand Up @@ -81,7 +81,7 @@ public function testSection()
$stopwatch->stopSection(2);

// the section is an event by itself
$this->assertCount(3, $stopwatch->getSectionEvents(1));
$this->assertCount(2, $stopwatch->getSectionEvents(2));
$this->assertEquals(3, count($stopwatch->getSectionEvents(1)));
$this->assertEquals(2, count($stopwatch->getSectionEvents(2)));
}
}

0 comments on commit 3134ef1

Please sign in to comment.