public function PagedRouteCollectionTest::testCount in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\RoutingCode
public function testCount() {
$this->routeProvider
->expects($this
->once())
->method('getRoutesCount')
->will($this
->returnValue(12));
$routeCollection = new PagedRouteCollection($this->routeProvider);
$this
->assertEquals(12, $routeCollection
->count());
}