phpunit
phpunit copied to clipboard
phpunit deprecation notices only displayed when defining source directory
| Q | A |
|---|---|
| PHPUnit version | 9.5.20 |
| PHP version | 7.4.24 |
| Installation Method | Composer |
Summary
when running phpunit without defining a source directory at the end of your command it does not display phpunit's (deprecation) warnings
Current behavior
this does not display phpunit's (deprecation) warnings
vendor/bin/phpunit --testsuite=Foo
while this does (e.g. Warning: Test case class not matching filename is deprecated)
vendor/bin/phpunit --testsuite=Foo tests/
How to reproduce
rename one of your class names of an existing test without changing the filename itself
Expected behavior
i'm not quite sure what is to be expected (i.e. is this expected behaviour or a bug). personally i'd expect the (deprecation) warnings to be shown regardless or perhaps have a flag to have them displayed