public function Twig_Tests_TemplateTest::testGetAttributeDefinedStrict in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/TemplateTest.php \Twig_Tests_TemplateTest::testGetAttributeDefinedStrict()
@dataProvider getGetAttributeTests
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ TemplateTest.php, line 262
Class
Code
public function testGetAttributeDefinedStrict($defined, $value, $object, $item, $arguments, $type, $useExt = false) {
$template = new Twig_TemplateTest(new Twig_Environment($this
->getMock('Twig_LoaderInterface'), array(
'strict_variables' => true,
)), $useExt);
$this
->assertEquals($defined, $template
->getAttribute($object, $item, $arguments, $type, true));
}