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()); }