--no-extensions CLI option only prevents extension PHARs from being loaded #5073
Labels
feature/test-runner
CLI test runner
type/bug
Something is broken
version/9
Something affects PHPUnit 9
version/10
Something affects PHPUnit 10
Summary
the --no-extensions cli option does not apply to the
<extension>
element configured in thephpunit.xml
Current behavior
while passing the
--no-extensions
cli option, extensions configured in the extension element ofphpunit.xml
are loaded when running phpunit.i'm not sure whether this is intended behaviour or an oversight tho (happens here)
phpunit/src/TextUI/Configuration/Merger.php
Lines 164 to 183 in 6770c48
How to reproduce
minimal, self-contained test case to reproduce can be found over here
Expected behavior
the extensions configured in the extension element are not loaded like the ones from the
pharDirectory
The text was updated successfully, but these errors were encountered: