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