mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
added a unit test test for previous merge
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
* 1.4.0
|
||||
|
||||
* fixed lexer when using big numbers (> PHP_INT_MAX)
|
||||
* added missing preserveKeys argument to the reverse filter
|
||||
* fixed macros containing filter tag calls
|
||||
|
||||
|
||||
@@ -138,4 +138,15 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
// should not throw an exception
|
||||
}
|
||||
|
||||
public function testBigNumbers()
|
||||
{
|
||||
$template = '{{ 922337203685477580700 }}';
|
||||
|
||||
$lexer = new Twig_Lexer(new Twig_Environment());
|
||||
$stream = $lexer->tokenize($template);
|
||||
$node = $stream->next();
|
||||
$node = $stream->next();
|
||||
$this->assertEquals(922337203685477580700, $node->getValue());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user