public function RouteCollectionTest::testCount

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/RouteCollectionTest.php, line 79

Class

RouteCollectionTest

Namespace

Symfony\Component\Routing\Tests

Code

public function testCount() {
  $collection = new RouteCollection();
  $collection
    ->add('foo', new Route('/foo'));
  $collection1 = new RouteCollection();
  $collection
    ->addCollection($collection1);
  $collection1
    ->add('foo1', new Route('/foo1'));
  $this
    ->assertCount(2, $collection);
}