public function Twig_Tests_TemplateTest::testGetAttributeCallExceptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/TemplateTest.php \Twig_Tests_TemplateTest::testGetAttributeCallExceptions()
@dataProvider getTestsDependingOnExtensionAvailability
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ TemplateTest.php, line 272
Class
Code
public function testGetAttributeCallExceptions($useExt = false) {
$template = new Twig_TemplateTest(new Twig_Environment($this
->getMock('Twig_LoaderInterface')), $useExt);
$object = new Twig_TemplateMagicMethodExceptionObject();
$this
->assertNull($template
->getAttribute($object, 'foo'));
}