public function Twig_Tests_Profiler_ProfileTest::testIsTemplate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
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());
}