You are here

public function PagedRouteCollectionTest::testCount in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/Tests/Routing/PagedRouteCollectionTest.php \Symfony\Cmf\Component\Routing\PagedRouteCollectionTest::testCount()

Tests the count() method.

File

vendor/symfony-cmf/routing/Tests/Routing/PagedRouteCollectionTest.php, line 94

Class

PagedRouteCollectionTest
Tests the page route collection.

Namespace

Symfony\Cmf\Component\Routing

Code

public function testCount() {
  $this->routeProvider
    ->expects($this
    ->once())
    ->method('getRoutesCount')
    ->will($this
    ->returnValue(12));
  $routeCollection = new PagedRouteCollection($this->routeProvider);
  $this
    ->assertEquals(12, $routeCollection
    ->count());
}