adriansuter/php-autoload-override
Override fully qualified global function calls inside class methods so you can mock them in tests. Works with PHP 8.2+ and Composer PSR-4 autoloading; integrates via a PHPUnit bootstrap using OverrideFactory to map functions (e.g., rand) to real implementations.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| php-mock/php-mock-mockery | 0.84 | Integrates php-mock with Mockery to mock PHP built-in functions in tests. Create namespaced function mocks with PHPMockery::mock() and set expectations/returns, then call Mockery::close(). Supports only unqualified calls; define early if needed. | 39 | 39 | 5 | 71K | 2 | 1.2 | 55.3 | WTFPL | 1 year ago | |
| php-mock/php-mock-phpunit | 0.84 | Integrate php-mock with PHPUnit to mock built-in PHP functions (like time(), file_get_contents(), etc.) in a controlled, namespaced way. Ideal for unit tests that need to simulate IO, time, and other global behaviors without changing production code. | 171 | 174 | 20 | 263K | 4 | 22.2 | 49.9 | WTFPL | 3 months ago | |
| tipoff/test-support | 0.83 | Deprecated/archived package providing shared unit/feature testing support for Tipoff Laravel packages. Previously included common test utilities and configuration; being removed as a dependency so packages can update independently and adopt newer Laravel versions faster. | 0 | 0 | 0 | 262 | 3 | 6.8 | 34.1 | MIT | 5 years ago | |
| digitalrevolution/phpunit-extensions | 0.82 | — | 3 | 3 | 2 | 4K | 1 | 22.5 | 46.4 | MIT | 2 months ago | |
| belsym/test-bundle | 0.82 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| php-mock/php-mock | 0.81 | Mock built-in PHP functions like time() or rand() in tests by leveraging PHP’s namespace fallback: define namespaced replacements for unqualified calls. Works in non-global namespaces; supports common test frameworks via integrations (e.g., PHPUnit). | 369 | 374 | 20 | 610K | 3 | 21.6 | 50.1 | WTFPL | 3 months ago | |
| acts/time-mock-bundle | 0.81 | Symfony bundle for mocking and controlling time in tests and development. Freeze, fast-forward, and reset “now” to make time-dependent code deterministic, simplify assertions, and avoid flaky tests across DateTime/Clock usage. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| open-southeners/extended-php | 0.81 | Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects. | 0 | 0 | 0 | 82 | 0 | 15.2 | 28.4 | MIT | 7 months ago | |
| psr-mock/http | 0.81 | psr-mock/http is a tiny PHP package for mocking PSR-7 HTTP messages in tests. Create predictable request/response objects without a full HTTP client, helping you unit test middleware, clients, and services with minimal setup. | 1 | 1 | 0 | 1K | 0 | 0.6 | 37.4 | MIT | 2 years ago | |
| tmarsteel/mockery-callable-mock | 0.81 | Create Mockery-friendly callable/function mocks in PHP. Set expectations (with args, counts), return values, stubs, and verify calls or non-calls. Can also wrap a real callable to spy while still invoking it. Requires PHP 7+. | 1 | 1 | 1 | 2K | 0 | 0.9 | 39.6 | — | 8 years ago | |
| symfonycasts/internal-test-helpers | 0.81 | Internal test utilities from SymfonyCasts to streamline PHPUnit and Symfony/Laravel package testing. Provides shared helpers, fixtures, and assertions used across SymfonyCasts projects to reduce boilerplate and keep tests consistent and readable. | 0 | — | 2 | — | 0 | 0.1 | — | — | — | |
| testo/testo | 0.81 | Testo is an extensible PHP testing framework with a lightweight core and middleware system. It lets you fully control your test environment while keeping familiar PHP syntax. Includes an init command, suite/plugin config via testo.php, and Composer scripts. | 0 | 181 | — | 2K | — | 42.2 | 26.4 | — | — | |
| codeception/aspect-mock | 0.81 | — | 790 | 790 | 134 | 19K | 40 | 27.4 | 34.4 | MIT | 4 years ago | |
| php-mock/php-mock-integration | 0.80 | Integration layer for php-mock, making it easy to use PHP function mocks within popular test frameworks. Helps you stub built-in functions like time(), rand(), and file operations in specific namespaces, enabling reliable, isolated unit tests without touching global state. | 14 | 14 | 6 | 329K | 0 | 16.5 | 61.9 | WTFPL | 3 months ago | |
| b2pweb/bdf-phpunit | 0.80 | Laravel/PHPUnit helper package for working with BDF/SEPA bank files in tests. Provides utilities and test assertions to validate BDF structures and parsing results, making it easier to write reliable unit tests around banking file imports. | 0 | 0 | 0 | 199 | 0 | 0.0 | 31.9 | MIT | — | |
| wyrihaximus/test-utilities | 0.78 | A set of PHP test utilities for package development: a PHPUnit TestCase with helpers like random namespaces and temp directories, plus ready-made configuration defaults for PHPStan and Rector (paths and docblock-to-attribute conversions). | 7 | 7 | 1 | 51K | 6 | 29.9 | 65.4 | MIT | 1 month ago |
How can I help you explore Laravel packages today?