You are here

public function Twig_Tests_TemplateTest::testGetAttributeDefined in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/TemplateTest.php \Twig_Tests_TemplateTest::testGetAttributeDefined()

@dataProvider getGetAttributeTests

File

vendor/twig/twig/test/Twig/Tests/TemplateTest.php, line 252

Class

Twig_Tests_TemplateTest

Code

public function testGetAttributeDefined($defined, $value, $object, $item, $arguments, $type, $useExt = false) {
  $template = new Twig_TemplateTest(new Twig_Environment($this
    ->getMock('Twig_LoaderInterface')), $useExt);
  $this
    ->assertEquals($defined, $template
    ->getAttribute($object, $item, $arguments, $type, true));
}