-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed as not planned
Labels
feature/test-runnerCLI test runnerCLI test runnertype/enhancementA new idea that should be implementedA new idea that should be implemented
Description
| Q | A |
|---|---|
| PHPUnit version | 12.4.0 |
| PHP version | 8.4.13 |
| Installation Method | Composer |
Summary
PHPUnit does not print the errors it encounters
Current behavior
PHPUnit prints Fatal error: Premature end of PHP process when running ReproducerTest::testExample.
How to reproduce
- Clone https://github.com/greg0ire/phpunit-reproducer
- Install dependencies
- Run PHPUnit
git clone git@github.com:greg0ire/phpunit-reproducer.git
composer install
vendor/bin/phpunit
Expected behavior
PHPUnit should print the fatal error:
PHP Fatal error: Declaration of Greg0ire\PhpunitReproducer\Child::__invoke() must be compatible with Greg0ire\PhpunitReproducer\Ancestor::__invoke(): void in /home/gregoire/dev/phpunit-reproducer/src/Child.php on line 7
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature/test-runnerCLI test runnerCLI test runnertype/enhancementA new idea that should be implementedA new idea that should be implemented