Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What means: "Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!"

Tags:

php

phpunit

I have included PHPUnit in a test vanilla PHP project and when I start the test with vendor/bin/phpunit I get the following error message:

Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!

Question: What does this error message mean and what do I have to do to avoid it?

My phpunit.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         colors="true"
         verbose="true"
         stopOnFailure="true"
>
    <testsuites>
        <testsuite name="Unit">
            <directory suffix="Test.php">./tests/Unit</directory>
        </testsuite>
    </testsuites>
</phpunit>

I using phpunit 10

    "require-dev": {
        "phpunit/phpunit": "^10.0"
    }
like image 561
Maik Lowrey Avatar asked Sep 03 '25 01:09

Maik Lowrey


1 Answers

Run vendor/bin/phpunit --migrate-configuration

like image 185
Sarwar Ahmed Avatar answered Sep 05 '25 00:09

Sarwar Ahmed