From d40171701f0e42565c10eb7d61d78a763767b7ee Mon Sep 17 00:00:00 2001 From: ptarjan Date: Tue, 12 Nov 2013 23:38:46 -0800 Subject: [PATCH] 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. --- test/Twig/Tests/LexerTest.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/Twig/Tests/LexerTest.php b/test/Twig/Tests/LexerTest.php index a5ed8fd..ab104f4 100644 --- a/test/Twig/Tests/LexerTest.php +++ b/test/Twig/Tests/LexerTest.php @@ -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() -- 1.7.2.5