You are here

public function Twig_Tests_ExpressionParserTest::testUnknownTest in Zircon Profile 8.0

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

@expectedException Twig_Error_Syntax @expectedExceptionMessage The test "nul" does not exist. Did you mean "null" in "index" at line 1

File

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

Class

Twig_Tests_ExpressionParserTest

Code

public function testUnknownTest() {
  $env = new Twig_Environment($this
    ->getMock('Twig_LoaderInterface'), array(
    'cache' => false,
    'autoescape' => false,
  ));
  $parser = new Twig_Parser($env);
  $parser
    ->parse($env
    ->tokenize('{{ 1 is nul }}', 'index'));
}