Version 1
[yaffs-website] / vendor / symfony / routing / Tests / Matcher / Dumper / DumperCollectionTest.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Routing\Tests\Matcher\Dumper;
13
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Routing\Matcher\Dumper\DumperCollection;
16
17 class DumperCollectionTest extends TestCase
18 {
19     public function testGetRoot()
20     {
21         $a = new DumperCollection();
22
23         $b = new DumperCollection();
24         $a->add($b);
25
26         $c = new DumperCollection();
27         $b->add($c);
28
29         $d = new DumperCollection();
30         $c->add($d);
31
32         $this->assertSame($a, $c->getRoot());
33     }
34 }