Security update for Core, with self-updated composer
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Profiler / Dumper / BlackfireTest.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_BlackfireTest extends Twig_Tests_Profiler_Dumper_AbstractTest
13 {
14     public function testDump()
15     {
16         $dumper = new Twig_Profiler_Dumper_Blackfire();
17
18         $this->assertStringMatchesFormat(<<<EOF
19 file-format: BlackfireProbe
20 cost-dimensions: wt mu pmu
21 request-start: %d.%d
22
23 main()//1 %d %d %d
24 main()==>index.twig//1 %d %d %d
25 index.twig==>embedded.twig::block(body)//1 %d %d 0
26 index.twig==>embedded.twig//2 %d %d %d
27 embedded.twig==>included.twig//2 %d %d %d
28 index.twig==>index.twig::macro(foo)//1 %d %d %d
29 EOF
30         , $dumper->dump($this->getProfile()));
31     }
32 }