You are here

public function Twig_Tests_Profiler_Dumper_TextTest::testDump in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/Profiler/Dumper/TextTest.php \Twig_Tests_Profiler_Dumper_TextTest::testDump()

File

vendor/twig/twig/test/Twig/Tests/Profiler/Dumper/TextTest.php, line 14

Class

Twig_Tests_Profiler_Dumper_TextTest

Code

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()));
}