mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
Use string instead of large integer
HHVM differs from php-src on large integer parsing (php-src converts them to floats, HHVM truncates them but leaves them as integers). The point of this test is to make sure Twig parses it correctly, not the underlying PHP execution engine.
This commit is contained in:
@@ -151,7 +151,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
|
||||
$stream = $lexer->tokenize($template);
|
||||
$node = $stream->next();
|
||||
$node = $stream->next();
|
||||
$this->assertEquals(922337203685477580700, $node->getValue());
|
||||
$this->assertEquals("922337203685477580700", $node->getValue());
|
||||
}
|
||||
|
||||
public function testStringWithEscapedDelimiter()
|
||||
|
||||
Reference in New Issue
Block a user