Skip to content

phpunit deprecation notices only displayed when defining source directory #5074

@wickedOne

Description

@wickedOne
Q A
PHPUnit version 9.5.25
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

minimal, self-contained test case to reproduce can be found over here

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

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions