public function Twig_Tests_TemplateTest::testAttributeOnAString

@expectedException Twig_Error_Runtime @expectedExceptionMessage Impossible to access a key ("a") on a "string" variable

File

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

Class

Twig_Tests_TemplateTest

Code

public function testAttributeOnAString() {
  $template = new Twig_TemplateTest(new Twig_Environment(null, array(
    'strict_variables' => true,
  )), false);
  $template
    ->getAttribute('string', 'a', array(), Twig_TemplateInterface::ARRAY_CALL, false);
}