Subversion Repositories php-qbpwcf

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 liveuser 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 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
}