fixed a test on hhvm

This commit is contained in:
Fabien Potencier
2013-09-19 13:44:08 +02:00
parent f939ea6b61
commit 89779bcf9a
+4
View File
@@ -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);
}