ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
HtmlTest.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_Html();
17 $this->assertStringMatchesFormat(<<<EOF
18<pre>main <span style="color: #d44">%d.%dms/%d%</span>
19└ <span style="background-color: #ffd">index.twig</span> <span style="color: #d44">%d.%dms/%d%</span>
20 └ embedded.twig::block(<span style="background-color: #dfd">body</span>)
21 └ <span style="background-color: #ffd">embedded.twig</span>
22 │ └ <span style="background-color: #ffd">included.twig</span>
23 └ index.twig::macro(<span style="background-color: #ddf">foo</span>)
24 └ <span style="background-color: #ffd">embedded.twig</span>
25 └ <span style="background-color: #ffd">included.twig</span>
26</pre>
27EOF
28 , $dumper->dump($this->getProfile()));
29 }
30}
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.