Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mockery Callable Mock Laravel Package

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+.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
polishsymfonycommunity/symfony-mocker-container 0.86 — 141 141 10 49K 1 2.9 34.9 — 4 years ago
View on GitHub
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 — — —
View on GitHub
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 39.5 MIT 2 years ago
View on GitHub
sofa/eloquent-testsuite 0.84 — 10 10 2 1K 0 2.5 28.3 MIT 5 years ago
View on GitHub
mcustiel/phiremock 0.84 — 150 152 15 9K 1 10.3 24.4 GPL-3.0 5 years ago
View on GitHub
Context7
imanghafoori/eloquent-mockery 0.84 — 127 127 20 124 4 2.6 5.2 MIT 2 years ago
View on GitHub
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 176 0 0.6 12.1 MIT 10 years ago
View on GitHub
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 3K 0 0.6 44.8 MIT 2 years ago
View on GitHub
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 11K 1 17.1 43.6 GPL-3.0 7 months ago
View on GitHub
Context7
mpyw/laravel-database-mock 0.83 Experimental Laravel package that mocks underlying PDO connections with Mockery, letting you stub SELECT, INSERT, and UPDATE queries and results for fast, database-free tests. Requires PHP 8.2+ and Laravel 11+. 6 6 0 1K 0 13.2 33.9 MIT 4 months ago
View on GitHub
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 248 2 1.4 14.9 — —
View on GitHub
codeception/aspect-mock 0.83 — 784 791 132 14K 40 27.3 32.9 MIT 4 years ago
View on GitHub
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 5.1 34.5 MIT 10 months ago
View on GitHub
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 15.5 53.4 GPL-3.0 7 months ago
View on GitHub
Context7
belsym/test-bundle 0.83 — 1 1 0 0 0 0.0 — MIT —
View on GitHub
Context7
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 — — —
View on GitHub
axstrad/use-case-test-bundle 0.82 — 0 0 0 0 0 0.0 — MIT —
View on GitHub
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 46 2 91 0 3.1 6.5 MIT 1 year ago
View on GitHub
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 55 0 0.0 17.8 — —
View on GitHub
Context7
chaplean/unit-bundle 0.82 — 0 0 0 0 0 0.0 — — —
View on GitHub
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel