| Q |
A |
| PHPUnit version |
11.5.1 |
| PHP version |
8.4.2 |
| Installation Method |
PHAR |
Summary
Tests using the createMock() method run flawlessly with phpunit installed as a composer package.
They do not run when using the PHAR.
Current behavior
Each test using createMock() outputs assert(class_exists(PropertyHookType::class)) - which looks a lot like an AssertionError.
How to reproduce
Run a test-suite using createMock() with the PHAR version of phpunit.
Expected behavior
Tests should run as expected. No assertion fails.
Summary
Tests using the
createMock()method run flawlessly withphpunitinstalled as a composer package.They do not run when using the PHAR.
Current behavior
Each test using
createMock()outputsassert(class_exists(PropertyHookType::class))- which looks a lot like anAssertionError.How to reproduce
Run a test-suite using createMock() with the PHAR version of phpunit.
Expected behavior
Tests should run as expected. No assertion fails.