8000 added condition to avoid skipping tests on JSON_PRETTY support · symfony/symfony@4b9d74d · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b9d74d

Browse files
cordovalfabpot
authored andcommitted
added condition to avoid skipping tests on JSON_PRETTY support
1 parent ad8d872 commit 4b9d74d

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

Lines changed: 3 additions & 1 deletion
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)
0