You are here

public function Twig_Tests_TemplateTest::testGetAttributeCallExceptions 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::testGetAttributeCallExceptions()

@dataProvider getTestsDependingOnExtensionAvailability

File

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

Class

Twig_Tests_TemplateTest

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'));
}