tmarsteel/mockery-callable-mock
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+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| polishsymfonycommunity/symfony-mocker-container | 0.86 | — | 144 | 144 | 10 | 53K | 1 | 2.9 | 35.4 | — | 3 years ago | |
| avris/function-mock | 0.85 | Mock PHP functions in unit tests without changing your code. avris/function-mock lets you replace and control built-in and user-defined function calls at runtime, making it easier to test legacy code, edge cases, and hard-to-isolate behavior. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| psr-mock/http | 0.84 | 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 | 38.5 | MIT | 2 years ago | |
| sofa/eloquent-testsuite | 0.84 | — | 10 | 10 | 2 | 862 | 0 | 2.6 | 26.2 | MIT | 5 years ago | |
| mcustiel/phiremock | 0.84 | — | 150 | 153 | 15 | 8K | 1 | 10.3 | 23.9 | GPL-3.0 | 5 years ago | |
| imanghafoori/eloquent-mockery | 0.84 | — | 127 | 127 | 20 | 714 | 4 | 2.7 | 12.8 | MIT | 2 years ago | |
| polishsymfonycommunity/symfony2-mocker-extension | 0.84 | Behat extension for Symfony2 that lets you mock services in the dependency injection container during tests. Built on Mockery and SymfonyMockerContainer. Consider it a hack and use sparingly; alternative: TestDoubleBundle. | 26 | 26 | 7 | 132 | 0 | 0.6 | 10.1 | MIT | 10 years ago | |
| psr-mock/http-client-implementation | 0.83 | Tiny PSR-18 HTTP client implementation intended for mocking and testing. Provides a simple client you can plug into PSR-7/PSR-17 workflows to return predefined responses without real network calls. | 1 | 1 | 0 | 2K | 0 | 0.6 | 42.5 | MIT | 2 years ago | |
| mcustiel/phiremock-client | 0.83 | PHP client for Phiremock Server with a fluent API to define HTTP expectations, manage scenarios, and reset server state. Works with Guzzle 6 by default, or any PSR-18 HTTP client by overriding the factory for custom connections. | 16 | 16 | 9 | 12K | 1 | 18.5 | 44.4 | GPL-3.0 | 3 months ago | |
| mpyw/laravel-database-mock | 0.83 | — | 6 | 6 | 0 | 3K | 0 | 19.6 | 42.8 | MIT | 1 month ago | |
| janmarek/mockista | 0.83 | Mockista is a lightweight mocking library for PHP/Laravel that helps you create and configure test doubles quickly. Define expectations, stub methods, and verify calls with a simple, fluent API to keep unit tests fast, readable, and maintainable. | 29 | 29 | 14 | 361 | 2 | 1.4 | 16.9 | — | — | |
| codeception/aspect-mock | 0.83 | — | 785 | 791 | 134 | 15K | 40 | 27.4 | 33.0 | MIT | 4 years ago | |
| mpyw/mockery-pdo | 0.83 | Experimental BDD-style PDO mocking library built on mockery/mockery. Define expectations for prepare/bind/execute and return rows via fetch/fetchAll in a fluent API, making PDO-based code easy to test on PHP 8.2+. | 3 | 3 | 2 | 1K | 1 | 9.9 | 37.7 | MIT | 7 months ago | |
| mcustiel/phiremock-common | 0.83 | Shared utilities for the Phiremock PHP ecosystem. Provides common classes, interfaces, and helpers used across related packages to simplify building and consuming Phiremock client/server components with consistent behavior and minimal duplication. | 3 | 3 | 5 | 13K | 1 | 16.4 | 54.0 | GPL-3.0 | 4 months ago | |
| belsym/test-bundle | 0.83 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| acts/time-mock-bundle | 0.83 | 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 | — | — | — | |
| axstrad/use-case-test-bundle | 0.82 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| timacdonald/callable-fake | 0.82 | A tiny PHP testing utility for faking/invoking callables. CallableFake lets you replace closures or invokable objects, record calls and arguments, assert usage, and return configured values—useful for isolating behavior in PHPUnit/Laravel tests. | 46 | 45 | 2 | 50 | 0 | 3.0 | 4.4 | MIT | 1 year ago | |
| bentools/doctrine-static | 0.82 | Lightweight in-memory Doctrine mock for unit tests. Create ObjectManagers in a ManagerRegistry, persist/remove and flush to a temporary store, and use repository methods like find, findBy, findOneBy, and findAll. Not for real persistence. | 2 | 3 | 0 | 19 | 0 | 0.0 | 12.0 | — | — | |
| chaplean/unit-bundle | 0.82 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — |
How can I help you explore Laravel packages today?