You are here

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

File

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

Class

Twig_Tests_TemplateTest

Code

public function getGetAttributeWithSandbox() {
  $tests = array(
    array(
      new Twig_TemplatePropertyObject(),
      'defined',
      false,
      false,
    ),
    array(
      new Twig_TemplatePropertyObject(),
      'defined',
      true,
      false,
    ),
    array(
      new Twig_TemplateMethodObject(),
      'defined',
      false,
      false,
    ),
    array(
      new Twig_TemplateMethodObject(),
      'defined',
      true,
      false,
    ),
  );
  if (function_exists('twig_template_get_attributes')) {
    foreach (array_slice($tests, 0) as $test) {
      $test[3] = true;
      $tests[] = $test;
    }
  }
  return $tests;
}