From 0c169ce98c94cb060c03c9ca546e519a55b36657 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Haso=C5=88?= Date: Mon, 4 Aug 2014 11:47:26 +0200 Subject: [PATCH] Fixed a test on hhvm --- test/Twig/Tests/LexerTest.php | 4 ---- test/Twig/Tests/NativeExtensionTest.php | 2 +- 2 files changed, 1 insertions(+), 5 deletions(-) diff --git a/test/Twig/Tests/LexerTest.php b/test/Twig/Tests/LexerTest.php index 97df3e5..c4d7083 100644 --- a/test/Twig/Tests/LexerTest.php +++ b/test/Twig/Tests/LexerTest.php @@ -140,10 +140,6 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase public function testBigNumbers() { - if ('hiphop' === substr(PHP_VERSION, -6)) { - $this->markTestSkipped('hhvm thinks that the number is actually a T_CONSTANT_ENCAPSED_STRING!'); - } - $template = '{{ 922337203685477580700 }}'; $lexer = new Twig_Lexer(new Twig_Environment()); diff --git a/test/Twig/Tests/NativeExtensionTest.php b/test/Twig/Tests/NativeExtensionTest.php index 9519bdf..7de268c 100644 --- a/test/Twig/Tests/NativeExtensionTest.php +++ b/test/Twig/Tests/NativeExtensionTest.php @@ -23,7 +23,7 @@ class Twig_Tests_NativeExtensionTest extends PHPUnit_Framework_TestCase $d2 = new DateTime(); $output = $twig->render('{{ d1.date }}{{ d2.date }}', compact('d1', 'd2')); - if ('hiphop' === substr(PHP_VERSION, -6)) { + if (defined('HHVM_VERSION')) { $this->markTestSkipped('Skip under HHVM as the behavior is not the same as plain PHP (which is an edge case anyway)'); } -- 1.7.2.5