You are here

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

@dataProvider getGetAttributeTests

File

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

Class

Twig_Tests_TemplateTest

Code

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