You are here

public function Twig_Tests_Profiler_ProfileTest::testIsTemplate 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::testIsTemplate()

File

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

Class

Twig_Tests_Profiler_ProfileTest

Code

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