Example #1
0
    public function testDump()
    {
        $dumper = new Apishka_Templater_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()));
    }
Example #2
0
 public function dump(Apishka_Templater_Profiler_Profile $profile)
 {
     return '<pre>' . parent::dump($profile) . '</pre>';
 }