mpyw/mockery-pdo
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+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| psr-mock/http-message-implementation | 0.88 | Lightweight PSR-7 HTTP message implementation mock for testing libraries and SDKs without hard dependencies. Strictly follows PSR behavior and includes a developer-friendly API to debug and fix failing tests faster. For dev use only (PHP 8.1+). | 0 | 0 | 1 | 2K | 0 | 0.6 | 46.8 | MIT | 2 years ago | |
| mpyw/laravel-database-mock | 0.87 | — | 6 | 6 | 0 | 3K | 0 | 19.6 | 42.8 | MIT | 1 month ago | |
| psr-mock/http | 0.87 | 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 | |
| mcustiel/phiremock-common | 0.87 | 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.2 | 53.8 | GPL-3.0 | 4 months ago | |
| sofa/eloquent-testsuite | 0.87 | — | 10 | 10 | 2 | 862 | 0 | 2.6 | 26.2 | MIT | 5 years ago | |
| psr-mock/http-client-implementation | 0.86 | 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 | |
| psr-mock/http-factory-implementation | 0.86 | Lightweight PSR-17/PSR-7 HTTP factory/message mock implementation for PHP 8.1+. Built for SDKs and libraries to test against PSR interfaces without hard deps, with strict PSR compliance and helpful debugging API. | 0 | 0 | 0 | 2K | 0 | 0.6 | 46.7 | MIT | 2 years ago | |
| codeception/aspect-mock | 0.86 | — | 785 | 791 | 134 | 15K | 40 | 27.4 | 33.0 | MIT | 4 years ago | |
| donatj/mock-webserver | 0.86 | Lightweight PHP mock web server for tests and local development. Spin up an HTTP server on a random port, enqueue canned responses, inspect received requests, and simulate endpoints reliably. Handy for integration tests without external services. | 139 | 140 | 22 | 52K | 5 | 22.2 | 41.2 | MIT | 5 months ago | |
| polishsymfonycommunity/symfony2-mocker-extension | 0.86 | 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.6 | MIT | 10 years ago | |
| tmarsteel/mockery-callable-mock | 0.85 | 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 | 1K | 0 | 0.9 | 39.7 | — | 8 years ago | |
| imanghafoori/eloquent-mockery | 0.85 | — | 127 | 127 | 20 | 714 | 4 | 2.7 | 12.8 | MIT | 2 years ago | |
| janmarek/mockista | 0.85 | 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 | — | — | |
| php-mock/php-mock-mockery | 0.85 | 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 | 69K | 2 | 1.9 | 44.6 | WTFPL | 1 year ago | |
| mcustiel/phiremock-client | 0.85 | 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 | |
| phake/phake | 0.85 | Phake is a PHP mocking framework for PHPUnit and other test runners. Create mocks, stubs, and spies with a simple API, verify method calls and arguments, and define return values or exceptions—ideal for fast, isolated unit tests. | 476 | 485 | 86 | 50K | 13 | 29.1 | 37.2 | NOASSERTION | 5 months ago | |
| php-mock/php-mock | 0.85 | 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). | 370 | 374 | 20 | 494K | 3 | 18.9 | 47.6 | WTFPL | 6 months ago | |
| belsym/test-bundle | 0.85 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| mockery/mockery | 0.84 | Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, and more. It provides a readable DSL to define expectations and interactions, integrates cleanly with PHPUnit, and can be used alongside PHPUnit’s own mocking tools. | 10,726 | 10,811 | 466 | 10M | 106 | 68.0 | 62.4 | BSD-3-Clause | 2 years ago | |
| doctrine/dbal | 0.62 | Doctrine DBAL is a powerful PHP database abstraction layer offering portable connections, a fluent query builder, schema introspection, and schema management tools. It supports multiple database platforms and underpins many Doctrine-based applications. | 9,703 | 9,859 | 1,377 | 9M | 285 | 89.7 | 74.4 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?