From 89779bcf9af93420ea6dfffe19fa4f3199a472f4 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 19 Sep 2013 13:44:08 +0200 Subject: [PATCH] fixed a test on hhvm --- test/Twig/Tests/NativeExtensionTest.php | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/test/Twig/Tests/NativeExtensionTest.php b/test/Twig/Tests/NativeExtensionTest.php index e5f329d..9519bdf 100644 --- a/test/Twig/Tests/NativeExtensionTest.php +++ b/test/Twig/Tests/NativeExtensionTest.php @@ -23,6 +23,10 @@ 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)) { + $this->markTestSkipped('Skip under HHVM as the behavior is not the same as plain PHP (which is an edge case anyway)'); + } + // If it fails, PHP will crash. $this->assertEquals($output, $d1->date.$d2->date); } -- 1.7.2.5