You are here

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

File

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

Class

Twig_Tests_Profiler_ProfileTest

Code

public function testIsMacro() {
  $profile = new Twig_Profiler_Profile('template', Twig_Profiler_Profile::MACRO);
  $this
    ->assertTrue($profile
    ->isMacro());
  $profile = new Twig_Profiler_Profile('template', Twig_Profiler_Profile::ROOT);
  $this
    ->assertFalse($profile
    ->isMacro());
}