ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
BlackfireTest.php
Go to the documentation of this file.
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
13{
14 public function testDump()
15 {
16 $dumper = new Twig_Profiler_Dumper_Blackfire();
17
18 $this->assertStringMatchesFormat(<<<EOF
19file-format: BlackfireProbe
20cost-dimensions: wt mu pmu
21request-start: %d.%d
22
23main()//1 %d %d %d
24main()==>index.twig//1 %d %d %d
25index.twig==>embedded.twig::block(body)//1 %d %d 0
26index.twig==>embedded.twig//2 %d %d %d
27embedded.twig==>included.twig//2 %d %d %d
28index.twig==>index.twig::macro(foo)//1 %d %d %d
29EOF
30 , $dumper->dump($this->getProfile()));
31 }
32}
const EOF
How fgetc() reports an End Of File.
Definition: JSMin_lib.php:92
An exception for terminatinating execution or to throw for unit testing.