From 4b9d74d99c43096ad6bef4409dab49a5ad878f2d Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Fri, 20 Dec 2013 09:57:17 -0500 Subject: [PATCH] added condition to avoid skipping tests on JSON_PRETTY support --- .../Tests/Console/Descriptor/JsonDescriptorTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/JsonDescriptorTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/JsonDescriptorTest.php index 30013550b5..5d6dafe46b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/JsonDescriptorTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/JsonDescriptorTest.php @@ -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()