-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--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
Comments
nightio
added
type/bug
Something is broken
version/9
Something affects PHPUnit 9
labels
Jan 15, 2024
nightio
pushed a commit
to nightio/phpunit
that referenced
this issue
Jan 15, 2024
sebastianbergmann
pushed a commit
that referenced
this issue
Jan 15, 2024
sebastianbergmann
changed the title
--no-extensions does not work with extensions defined in config file
Jan 15, 2024
--no-extensions
CLI option does not work
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: