Weave Code
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

Phpunit Mock Objects Laravel Package

phpunit/phpunit-mock-objects

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

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

This package is obsolete and deprecated. Modern PHPUnit versions (5.0+) include integrated mocking functionality, making this standalone package irrelevant for any current or new projects. Product decisions should focus exclusively on using PHPUnit’s built-in mocking capabilities to avoid technical debt, security vulnerabilities, and compatibility issues with current PHP ecosystems.

When to Consider This Package

Never. The package is archived, last updated in 2013, has no active maintenance, and is incompatible with modern PHPUnit (v7+). It should never be considered for adoption. Projects using it would face critical risks: unpatched security flaws, broken dependencies, and inability to integrate with current testing workflows. Always prioritize PHPUnit’s native mocking features instead.

How to Pitch It (Stakeholders)

"This package is deprecated and has been fully merged into PHPUnit’s core since 2015. All mocking functionality is now natively supported in PHPUnit without external dependencies. Using this standalone package would introduce unnecessary risks—unpatched security issues, broken compatibility, and maintenance headaches. We recommend leveraging PHPUnit’s built-in tools for robust, supported, and future-proof testing. No action is needed here; the correct path is already part of our standard testing stack."

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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai