Skip to content

Location for (current version of) XML Schema for XML configuration file has changed #4405

@morozov

Description

@morozov

Up until PHPUnit 9.3, it was possible to specify the configuration schema as the following:

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"

This way, after a PHPUnit update, it was possible to validate the configuration against the current schema.

As of PHPUnit 9.3, the schema path has to be specified like this:

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/schema/9.3.xsd"

Which requires an additional non-obvious code change during PHPUnit updates.

It would be nice if the following was possible:

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/schema/current.xsd"

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions