--no-extensions
CLI option does not work
#5666
Labels
feature/test-runner
CLI test runner
type/bug
Something is broken
version/9
Something affects PHPUnit 9
Continuation of #5073
Summary
the
--no-extensions
cli option does not apply to the element configured in the config fileCurrent behavior
while passing the --no-extensions cli option, extensions configured in the extension element of phpunit.xml are loaded when running phpunit.
How to reproduce
Add any extensions to the configuration. Run tests with
--no-extensions
.Extensions are loaded.
Expected behavior.
The extensions configured in the extension element are not loaded
A potential issue
phpunit/src/TextUI/TestRunner.php
Line 1009 in 7e7adbd
The
$this->arguments
variable used isn't defined. There is no$this->arguments
variable, only$arguments
.Solution proposal
Replace
$this->arguments
with$arguments
The text was updated successfully, but these errors were encountered: