You are here

public function Twig_Tests_LexerTest::testNameLabelForTag in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/LexerTest.php \Twig_Tests_LexerTest::testNameLabelForTag()

File

vendor/twig/twig/test/Twig/Tests/LexerTest.php, line 13

Class

Twig_Tests_LexerTest

Code

public function testNameLabelForTag() {
  $template = '{% § %}';
  $lexer = new Twig_Lexer(new Twig_Environment($this
    ->getMock('Twig_LoaderInterface')));
  $stream = $lexer
    ->tokenize($template);
  $stream
    ->expect(Twig_Token::BLOCK_START_TYPE);
  $this
    ->assertSame('§', $stream
    ->expect(Twig_Token::NAME_TYPE)
    ->getValue());
}