adriansuter/php-autoload-override
Override fully qualified function calls inside PHP class methods so you can mock them in tests. Works with Composer PSR-4 autoloading (PHP 8.2+). Use OverrideFactory to map functions (e.g., rand) to custom implementations for deterministic PHPUnit tests.
|
Package
|
Constraint
|
|---|---|
| nikic/php-parser | ^5 |
|
Package
|
Constraint
|
|---|---|
| phpspec/prophecy-phpunit | ^2 |
| phpstan/phpstan | ^2 |
| phpunit/phpunit | ^11 | ^12 | ^13 |
| squizlabs/php_codesniffer | ^3.7 | ^4 |
How can I help you explore Laravel packages today?