public function testDump() { $dumper = new Twig_Profiler_Dumper_Text(); $this->assertStringMatchesFormat(<<<EOF main %d.%dms/%d% └ index.twig %d.%dms/%d% └ embedded.twig::block(body) └ embedded.twig │ └ included.twig └ index.twig::macro(foo) └ embedded.twig └ included.twig EOF , $dumper->dump($this->getProfile())); }
public function dump(Twig_Profiler_Profile $profile) { return '<pre>' . parent::dump($profile) . '</pre>'; }
/** * {@inheritdoc} */ public function dump(\Twig_Profiler_Profile $profile) { return '<pre class="h--word-intact"><code class="code--json">' . parent::dump($profile) . '</code></pre>'; }