minor #1270 Use string instead of large integer (ptarjan)

This PR was merged into the master branch.

Discussion
----------

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.

Commits
-------

d401717 Use string instead of large integer
This commit is contained in:
Fabien Potencier
2013-11-13 09:11:09 +01:00
+1 -1
View File
@@ -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()