public function Twig_Tests_TemplateTest::testGetAttributeDefinedStrict

@dataProvider getGetAttributeTests

File

drupal/core/vendor/twig/twig/test/Twig/Tests/TemplateTest.php, line 81

Class

Twig_Tests_TemplateTest

Code

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