Yaffs site version 1.1
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Profiler / Dumper / TextTest.php
1 <?php
2
3 /*
4  * This file is part of Twig.
5  *
6  * (c) Fabien Potencier
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 class Twig_Tests_Profiler_Dumper_TextTest extends Twig_Tests_Profiler_Dumper_AbstractTest
13 {
14     public function testDump()
15     {
16         $dumper = new Twig_Profiler_Dumper_Text();
17         $this->assertStringMatchesFormat(<<<EOF
18 main %d.%dms/%d%
19 └ index.twig %d.%dms/%d%
20   └ embedded.twig::block(body)
21   └ embedded.twig
22   │ └ included.twig
23   └ index.twig::macro(foo)
24   └ embedded.twig
25     └ included.twig
26
27 EOF
28         , $dumper->dump($this->getProfile()));
29     }
30 }