8000 minor #9830 [WCM][Tests] Improve tests running with specific requirem… · symfony/symfony@d1ace04 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d1ace04

Browse files
committed
minor #9830 [WCM][Tests] Improve tests running with specific requirements (except intl icu) (cordoval)
This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes #9830). Discussion ---------- [WCM][Tests] Improve tests running with specific requirements (except intl icu) | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | na | License | MIT | Doc PR | na - [x] go over all skipped tests, take note and check they are reasonable - [x] reenable memcache, mongodb, and memcached We are keeping the icu intl related tests skipped because setting up icu 51.2 is totally time consuming in travis and it would require a custom distro box on travis because there are no ppa's available for the ubuntu version. I tried hard but it does not seem worth it. Same for plugging beta of memcached with pecl, it is just not reasonable to be running beta versions on travis. This then does not address #9797 but at least now we are aware. This PR now can be merged as is as it improves tests that before were not ran. Not all but more than before. 👶 Commits ------- 6e0b2dc added condition to avoid skipping tests on JSON_PRETTY support
2 parents ad8d872 + 4b9d74d commit d1ace04

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