Skip to content

Test Double Code Generator does not work when PHPUnit is used from PHAR on PHP 8.4 #6093

@jankal

Description

@jankal
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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions