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

Mock Final Classes Laravel Package

nunomaduro/mock-final-classes

Dev-only helper that automatically enables mocking of final classes and methods in PHP tests. Works with PHPUnit, Pest, and ParaTest by removing final keywords on the fly via dg/bypass-finals—install with Composer and it just works.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
sebastian/peek-and-poke 0.85 sebastian/peek-and-poke is a small PHP utility that uses reflection to peek at and poke into objects. It lets you read and write private and protected properties, making it handy for tests that need to inspect or set up object state without changing production code. 36 34 8 117 1 0.3 6.0 NOASSERTION —
View on GitHub
php-http/mock-client 0.85 Mock HTTP client for HTTPlug/PHP-HTTP. Stores outgoing requests and returns queued responses or throws exceptions instead of making real network calls—ideal for unit tests of HTTP-dependent code. Install via Composer as a dev dependency. 71 75 16 266K 0 6.0 49.3 MIT 2 years ago
View on GitHub
Context7
php-mock/php-mock-integration 0.85 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 374K 0 8.2 57.8 WTFPL 9 months ago
View on GitHub
php-mock/php-mock-phpunit 0.85 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. 173 176 20 236K 4 28.3 51.3 WTFPL 1 month ago
View on GitHub
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 375 19 726K 3 13.0 47.8 WTFPL 9 months ago
View on GitHub
mockery/mockery 0.85 Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, or any other testing framework. It offers a succinct, human-readable DSL for defining test doubles and integrates easily as a drop-in alternative to PHPUnit's mocking library. 10,724 10,808 470 19M 89 84.3 77.1 BSD-3-Clause 2 months ago
View on GitHub
Context7
eloquent/phpstan-phony 0.85 — 5 5 4 197 0 1.7 15.2 MIT 5 years ago
View on GitHub
Context7
lendable/phpunit-extensions 0.84 — 2 2 0 2K 1 8.6 43.2 MIT 8 months ago
View on GitHub
phpunit/phpunit-mock-objects 0.84 Default mock object library for PHPUnit. Create test doubles (mocks, stubs, spies) to isolate units under test, define expectations, control method returns, and verify interactions. Designed for PHPUnit projects and compatible with PHP 7.1+. 4,920 5,056 151 759K 0 15.2 21.4 NOASSERTION 13 years ago
View on GitHub
codeception/aspect-mock 0.84 — 784 791 132 14K 40 27.3 32.9 MIT 4 years ago
View on GitHub
phpstan/phpstan-phpunit 0.84 PHPStan extension for PHPUnit that improves mock object and assert type inference, supports MockBuilder and phpDoc intersections, and adds optional strict rules for more precise, framework-aware static analysis. 546 550 58 6M 34 44.3 79.3 MIT 1 month ago
View on GitHub
mnapoli/phpunit-easymock 0.84 A lightweight bridge between PHPUnit and EasyMock for PHP. Quickly create, replay, and verify mocks from your test cases with minimal boilerplate, helping you write clear unit tests using the familiar EasyMock-style workflow. 38 38 4 1K 0 4.8 20.6 MIT 1 year ago
View on GitHub
phrity/net-mock 0.84 Mocking layer for phrity/net-stream to simplify testing stream-based code. Drop-in compatible stream classes that can log all interactions via any PSR-3 logger and override behavior with callbacks. Includes PHPUnit expectation traits for asserting calls and parameters. 0 0 0 244 0 11.1 35.3 MIT 7 months ago
View on GitHub
psr-mock/http-factory-implementation 0.84 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 4K 0 0.6 50.0 MIT 2 years ago
View on GitHub
tomb1n0/guzzle-mock-handler 0.84 Lightweight mock handler for Guzzle to fake HTTP responses in tests. Queue responses, simulate status codes, headers, and body content, and inspect requests without making real network calls—useful for unit/integration testing of API clients. 3 3 2 4K 4 1.1 42.0 MIT —
View on GitHub
dg/bypass-finals 0.84 dg/bypass-finals is a PHP library that removes the final keyword at runtime so you can mock final classes and methods in tests. It works with PHPUnit and other mocking tools, making legacy or third-party code easier to test without changing source. 581 574 34 922K 1 27.6 51.7 NOASSERTION 1 week ago
View on GitHub
Context7
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 78K 2 1.9 45.4 WTFPL 1 year ago
View on GitHub
reecem/mocker 0.84 A lightweight Laravel-friendly mocking helper for PHP tests. Quickly define and swap mocks, set expectations, and control return values to simplify unit and feature testing. Designed to reduce boilerplate and keep test setup clean and readable. 7 7 16 2K 2 4.3 33.2 MIT 3 years ago
View on GitHub
nunomaduro/laravel-console-dusk 0.83 Run Laravel Dusk browser automation inside Artisan commands for Laravel or Laravel Zero. Configure screenshots/log paths, headless mode, and driver options to script and test real browser flows from the console. 162 163 24 999 9 10.6 15.5 MIT 8 months ago
View on GitHub
phpspec/prophecy-phpunit 0.83 Integrates the Prophecy mocking library with PHPUnit for simpler, cleaner test doubles. Install via Composer and use the ProphecyTrait to call prophesize() inside your TestCase, set method predictions/returns, and reveal mocks for injection. 195 195 39 1M 1 11.7 56.7 MIT 8 months ago
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.
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route