You are here

public function Twig_Tests_ExpressionParserTest::getFailingTestsForAssignment in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/ExpressionParserTest.php \Twig_Tests_ExpressionParserTest::getFailingTestsForAssignment()

File

vendor/twig/twig/test/Twig/Tests/ExpressionParserTest.php, line 26

Class

Twig_Tests_ExpressionParserTest

Code

public function getFailingTestsForAssignment() {
  return array(
    array(
      '{% set false = "foo" %}',
    ),
    array(
      '{% set true = "foo" %}',
    ),
    array(
      '{% set none = "foo" %}',
    ),
    array(
      '{% set 3 = "foo" %}',
    ),
    array(
      '{% set 1 + 2 = "foo" %}',
    ),
    array(
      '{% set "bar" = "foo" %}',
    ),
    array(
      '{% set %}{% endset %}',
    ),
  );
}