Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Running Drupal tests using the core phpunit.xml configuration under PHPUnit 9 yields
PHPUnit 9.5.4 by Sebastian Bergmann and contributors.
Warning: Your XML configuration validates against a deprecated schema.
Suggestion: Migrate your XML configuration using "--migrate-configuration"!
Proposed resolution
Make changes in order to drop deprecated schema elements from the config file. Will it work backwards in PHPUnit 8? If not, either we have to wait dropping PHPUnit 8 support, or find a way to run tests with different config files based on the test runner version.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#6 | 3222004-6.patch | 2.25 KB | longwave |
|
Issue fork drupal-3222004
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mondrakeComment #4
longwaveThe new schema was introduced in PHPUnit 9.3 and it doesn't seem to be supported in PHPUnit 8, so I think we have to postpone this until we support >9.3 only.
Docs: https://github.com/sebastianbergmann/phpunit/blob/9.3.0/ChangeLog-9.3.md
This might look OK on testbot but I guess the config loading is different or the warning is lost somewhere?
Comment #5
longwaveComment #6
longwaveFollowing #3252010: Lock PHPUnit to 9.5 we can make this change in 10.0.x.
Comment #7
mondrakeYes.
Comment #8
alexpottCommitted 8220c91 and pushed to 10.0.x. Thanks!