Skip to content

Commit 6e0b2dc

Browse files
committed
added condition to avoid skipping tests on JSON_PRETTY support
1 parent c0e4c4a commit 6e0b2dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/JsonDescriptorTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class JsonDescriptorTest extends AbstractDescriptorTest
1717
{
1818
protected function setUp()
1919
{
20-
$this->markTestSkipped('Test skipped on PHP 5.3 as JSON_PRETTY_PRINT does not exist.');
20+
if (version_compare(phpversion(), '5.4.0', '<')) {
21+
$this->markTestSkipped('Test skipped on PHP 5.3 as JSON_PRETTY_PRINT does not exist.');
22+
}
2123
}
2224

2325
protected function getDescriptor()

0 commit comments

Comments
 (0)