Почему phpunit не видит phpunit.xml?

Учебный пустой проект. Работаю под Windows с OpenServer. phpunit установлен и работает.

Пишу vendor\bin\phpunit.

PHPUnit 10.0.7 by Sebastian Bergmann and contributors.

Работает.

Создал папки tests\unit

Создал phpunit.xml:

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap = "vendor/autoload.php">

    <testsuites>
        <testsuite name="unit">
            <directory>tests</directory>
        </testsuite>
    </testsuites>
        
</phpunit>

Пишу vendor\bin\phpunit. Ожидаю увидеть no tests Executed! Но вижу снова

PHPUnit 10.0.7 by Sebastian Bergmann and contributors.

Команда vendor\bin\phpunit tests работает

PHPUnit 10.0.7 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.1.9
Configuration: G:\Program Files\OpenServer 5.4.3\domains\phpunit.local\phpunit.xml

No tests executed!

Почему phpunit не видит phpunit.xml при запуске vendor\bin\phpunit?


Ответы (0 шт):