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
12use Twig\Profiler\Dumper\TextDumper;
13
14class Twig_Tests_Profiler_Dumper_TextTest extends Twig_Tests_Profiler_Dumper_AbstractTest
15{
16    public function testDump()
17    {
18        $dumper = new TextDumper();
19        $this->assertStringMatchesFormat(<<<EOF
20main %d.%dms/%d%
21└ index.twig %d.%dms/%d%
22  └ embedded.twig::block(body)
23  └ embedded.twig
24  │ └ included.twig
25  └ index.twig::macro(foo)
26  └ embedded.twig
27    └ included.twig
28
29EOF
30        , $dumper->dump($this->getProfile()));
31    }
32}
33