-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
feature/test-doublesTest Stubs and Mock ObjectsTest Stubs and Mock Objectsinstallation/phartype/bugSomething is brokenSomething is brokenversion/11Something affects PHPUnit 11Something affects PHPUnit 11version/12Something affects PHPUnit 12Something affects PHPUnit 12
Description
| 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature/test-doublesTest Stubs and Mock ObjectsTest Stubs and Mock Objectsinstallation/phartype/bugSomething is brokenSomething is brokenversion/11Something affects PHPUnit 11Something affects PHPUnit 11version/12Something affects PHPUnit 12Something affects PHPUnit 12