You are here

public function Twig_Tests_Profiler_ProfileTest::testIsBlock in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/Profiler/ProfileTest.php \Twig_Tests_Profiler_ProfileTest::testIsBlock()

File

vendor/twig/twig/test/Twig/Tests/Profiler/ProfileTest.php, line 41

Class

Twig_Tests_Profiler_ProfileTest

Code

public function testIsBlock() {
  $profile = new Twig_Profiler_Profile('template', Twig_Profiler_Profile::BLOCK);
  $this
    ->assertTrue($profile
    ->isBlock());
  $profile = new Twig_Profiler_Profile('template', Twig_Profiler_Profile::ROOT);
  $this
    ->assertFalse($profile
    ->isBlock());
}