public function RouteCollectionTest::testCount in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Tests/RouteCollectionTest.php \Symfony\Component\Routing\Tests\RouteCollectionTest::testCount()
File
- vendor/
symfony/ routing/ Tests/ RouteCollectionTest.php, line 72
Class
Namespace
Symfony\Component\Routing\TestsCode
public function testCount() {
$collection = new RouteCollection();
$collection
->add('foo', new Route('/foo'));
$collection1 = new RouteCollection();
$collection1
->add('bar', new Route('/bar'));
$collection
->addCollection($collection1);
$this
->assertCount(2, $collection);
}