You are here

public function Twig_Tests_LexerTest::testBigNumbers in Zircon Profile 8

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

File

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

Class

Twig_Tests_LexerTest

Code

public function testBigNumbers() {
  $template = '{{ 922337203685477580700 }}';
  $lexer = new Twig_Lexer(new Twig_Environment($this
    ->getMock('Twig_LoaderInterface')));
  $stream = $lexer
    ->tokenize($template);
  $stream
    ->next();
  $node = $stream
    ->next();
  $this
    ->assertEquals('922337203685477580700', $node
    ->getValue());
}