public function Twig_Tests_LexerTest::testOperatorEndingWithALetterAtTheEndOfALine in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/LexerTest.php \Twig_Tests_LexerTest::testOperatorEndingWithALetterAtTheEndOfALine()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ LexerTest.php, line 252
Class
Code
public function testOperatorEndingWithALetterAtTheEndOfALine() {
$template = "{{ 1 and\n0}}";
$lexer = new Twig_Lexer(new Twig_Environment($this
->getMock('Twig_LoaderInterface')));
$stream = $lexer
->tokenize($template);
$stream
->expect(Twig_Token::VAR_START_TYPE);
$stream
->expect(Twig_Token::NUMBER_TYPE, 1);
$stream
->expect(Twig_Token::OPERATOR_TYPE, 'and');
}