added condition to avoid skipping tests on JSON_PRETTY support
This commit is contained in:
parent
ad8d8727d9
commit
4b9d74d99c
@ -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()
|
||||
|
Reference in New Issue
Block a user