Problem/Motivation

Working on #2870194: Ensure that process-isolated tests can use Symfony's PHPunit bridge to catch usages of deprecated code I performed composer update on core 8.4.x to see what would happen.

As it turns out, this:

  - Updating symfony/phpunit-bridge (v3.2.8 => v3.3.0): Loading from cache
[...]
$ ./vendor/bin/phpunit -c core/ --testsuite unit

Fatal error: Declaration of Symfony\Bridge\PhpUnit\SymfonyTestsListener::addSkippedTest(PHPUnit\Framework\Test $test, Exception $e, $time) must be compatible with PHPUnit_Framework_TestListener::addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time) in /Users/paul/pj2/drupal/vendor/symfony/phpunit-bridge/SymfonyTestsListener.php on line 70

So we can't currently use phpunit-bridge 3.3.* because we're stuck at phpunit 4.8.* even though it appears that this is an upstream error in version constraints.

Proposed resolution

In core/composer.json, constrain symfony/phpunit-bridge to 3.2.*

Work on an upstream solution.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#6 2882826-6.patch2.34 KBalexpott
#5 2882826_5.patch1.77 KBmile23
#2 2882826_2.patch1.77 KBmile23

Comments

Mile23 created an issue. See original summary.

mile23’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.77 KB

We also get a bump to 3.2.9 from 3.2.8.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jibran’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Can we have a patch for 8.5.x as well?

mile23’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new1.77 KB

Updated for 8.5.x, and the patch applies to 8.4.x as well.

alexpott’s picture

StatusFileSize
new2.34 KB

Hmmm... this is not what happens for me. If I do the update to 3.3.10 everything works just fine... here's a patch that does the upgrade.

alexpott’s picture

Also the current constraint in core/composer.json is ~3.2.8 which means it won't allow 3.3.* anyway - see https://getcomposer.org/doc/articles/versions.md#tilde-version-range-

mile23’s picture

Status: Needs review » Closed (duplicate)

Looks like we added the ~ in #2887000: composer.json does not constrain Symfony components to minor and patch versions that are compatible with Drupal which touches both 8.4.x and 8.5.x.

So this is a duplicate.

Thanks. :-)