You are here

public function DumperCollectionTest::testGetRoot in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Tests/Matcher/Dumper/DumperCollectionTest.php \Symfony\Component\Routing\Tests\Matcher\Dumper\DumperCollectionTest::testGetRoot()

File

vendor/symfony/routing/Tests/Matcher/Dumper/DumperCollectionTest.php, line 18

Class

DumperCollectionTest

Namespace

Symfony\Component\Routing\Tests\Matcher\Dumper

Code

public function testGetRoot() {
  $a = new DumperCollection();
  $b = new DumperCollection();
  $a
    ->add($b);
  $c = new DumperCollection();
  $b
    ->add($c);
  $d = new DumperCollection();
  $c
    ->add($d);
  $this
    ->assertSame($a, $c
    ->getRoot());
}