-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
type/bugSomething is brokenSomething is broken
Description
Q | A |
---|---|
PHPUnit version | a62124f |
PHP version | 8.3.23 |
Installation Method | Composer / PHAR |
How to reproduce
➜ phpunit git:(main) php phpunit --filter FilterWhichDoesNotMatchAnything
PHPUnit 12.3-ga62124f38 by Sebastian Bergmann and contributors.
Runtime: PHP 8.3.23
Configuration: /Users/m.staab/Documents/GitHub/phpunit/phpunit.xml
No tests executed!
➜ phpunit git:(main) echo $?
0
➜ phpunit git:(main) php -v
PHP 8.3.23 (cli) (built: Jul 1 2025 16:52:12) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.23, Copyright (c) Zend Technologies
Expected behavior
I think in case we do not run any tests and had a --filter
defined, PHPUnit should return a non-zero exit code
Metadata
Metadata
Assignees
Labels
type/bugSomething is brokenSomething is broken