Exemplo n.º 1
0
    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()));
    }
Exemplo n.º 2
0
 public function dump(Twig_Profiler_Profile $profile)
 {
     return '<pre>' . parent::dump($profile) . '</pre>';
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function dump(\Twig_Profiler_Profile $profile)
 {
     return '<pre class="h--word-intact"><code class="code--json">' . parent::dump($profile) . '</code></pre>';
 }