Closed
Description
Q | A |
---|---|
PHPUnit version | 11.4.3 |
PHP version | 8.3.14 |
Installation Method | Composer |
Summary
Given following phpunit.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.4/phpunit.xsd"
beStrictAboutTodoAnnotatedTests="true"
displayDetailsOnPhpunitDeprecations="true">
</phpunit>
And running vendor/bin/phpunit -c phpunit.xml
, I get:
There was 1 PHPUnit test runner deprecation:
1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
But when I run the migration via vendor/bin/phpunit -c phpunit.xml --migrate-configuration
, the error persists and config is still invalid:
So I used some XSD validator to determine that the beStrictAboutTodoAnnotatedTests
must not be present (the real config XML was huge).
Current behavior
As above
How to reproduce
As above
Expected behavior
--migrate-configuration
should fix XSD issues. Any decent XSD validator gives me better insight what is wrong, but PHPUnit just guides me to autofix which does not work.