You are here

public function Twig_Tests_Profiler_ProfileTest::testIsRoot in Zircon Profile 8

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

File

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

Class

Twig_Tests_Profiler_ProfileTest

Code

public function testIsRoot() {
  $profile = new Twig_Profiler_Profile('template', Twig_Profiler_Profile::ROOT);
  $this
    ->assertTrue($profile
    ->isRoot());
  $profile = new Twig_Profiler_Profile('template', Twig_Profiler_Profile::TEMPLATE);
  $this
    ->assertFalse($profile
    ->isRoot());
}