You are here

public function RouteCollectionTest::testCount in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/RouteCollectionTest.php \Symfony\Component\Routing\Tests\RouteCollectionTest::testCount()

File

vendor/symfony/routing/Tests/RouteCollectionTest.php, line 72

Class

RouteCollectionTest

Namespace

Symfony\Component\Routing\Tests

Code

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);
}