mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
Moved skip for HHVM
Skip for HHVM was moved up as test is Failed earlier trying to access DateTime->date.
This commit is contained in:
@@ -13,6 +13,10 @@ class Twig_Tests_NativeExtensionTest extends PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
public function testGetProperties()
|
public function testGetProperties()
|
||||||
{
|
{
|
||||||
|
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)');
|
||||||
|
}
|
||||||
|
|
||||||
$twig = new Twig_Environment(new Twig_Loader_String(), array(
|
$twig = new Twig_Environment(new Twig_Loader_String(), array(
|
||||||
'debug' => true,
|
'debug' => true,
|
||||||
'cache' => false,
|
'cache' => false,
|
||||||
@@ -23,10 +27,6 @@ class Twig_Tests_NativeExtensionTest extends PHPUnit_Framework_TestCase
|
|||||||
$d2 = new DateTime();
|
$d2 = new DateTime();
|
||||||
$output = $twig->render('{{ d1.date }}{{ d2.date }}', compact('d1', 'd2'));
|
$output = $twig->render('{{ d1.date }}{{ d2.date }}', compact('d1', 'd2'));
|
||||||
|
|
||||||
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)');
|
|
||||||
}
|
|
||||||
|
|
||||||
// If it fails, PHP will crash.
|
// If it fails, PHP will crash.
|
||||||
$this->assertEquals($output, $d1->date.$d2->date);
|
$this->assertEquals($output, $d1->date.$d2->date);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user