diff options
Diffstat (limited to 'vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperCollectionTest.php')
-rw-r--r-- | vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperCollectionTest.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperCollectionTest.php b/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperCollectionTest.php new file mode 100644 index 00000000..54b37727 --- /dev/null +++ b/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/DumperCollectionTest.php | |||
@@ -0,0 +1,33 @@ | |||
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\Test\Matcher\Dumper; | ||
13 | |||
14 | use Symfony\Component\Routing\Matcher\Dumper\DumperCollection; | ||
15 | |||
16 | class DumperCollectionTest extends \PHPUnit_Framework_TestCase | ||
17 | { | ||
18 | public function testGetRoot() | ||
19 | { | ||
20 | $a = new DumperCollection(); | ||
21 | |||
22 | $b = new DumperCollection(); | ||
23 | $a->add($b); | ||
24 | |||
25 | $c = new DumperCollection(); | ||
26 | $b->add($c); | ||
27 | |||
28 | $d = new DumperCollection(); | ||
29 | $c->add($d); | ||
30 | |||
31 | $this->assertSame($a, $c->getRoot()); | ||
32 | } | ||
33 | } | ||