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\BlackfireDumper;
13
14class Twig_Tests_Profiler_Dumper_BlackfireTest extends Twig_Tests_Profiler_Dumper_AbstractTest
15{
16    public function testDump()
17    {
18        $dumper = new BlackfireDumper();
19
20        $this->assertStringMatchesFormat(<<<EOF
21file-format: BlackfireProbe
22cost-dimensions: wt mu pmu
23request-start: %d.%d
24
25main()//1 %d %d %d
26main()==>index.twig//1 %d %d %d
27index.twig==>embedded.twig::block(body)//1 %d %d 0
28index.twig==>embedded.twig//2 %d %d %d
29embedded.twig==>included.twig//2 %d %d %d
30index.twig==>index.twig::macro(foo)//1 %d %d %d
31EOF
32        , $dumper->dump($this->getProfile()));
33    }
34}
35