public function Twig_Tests_LexerTest::testBigNumbers

File

drupal/core/vendor/twig/twig/test/Twig/Tests/LexerTest.php, line 142

Class

Twig_Tests_LexerTest

Code

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