added condition to avoid skipping tests on JSON_PRETTY support

This commit is contained in:
Luis Cordova 2013-12-20 09:57:17 -05:00 committed by Fabien Potencier
parent ad8d8727d9
commit 4b9d74d99c

View File

@ -17,7 +17,9 @@ class JsonDescriptorTest extends AbstractDescriptorTest
{
protected function setUp()
{
$this->markTestSkipped('Test skipped on PHP 5.3 as JSON_PRETTY_PRINT does not exist.');
if (version_compare(phpversion(), '5.4.0', '<')) {
$this->markTestSkipped('Test skipped on PHP 5.3 as JSON_PRETTY_PRINT does not exist.');
}
}
protected function getDescriptor()