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+.
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.
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.
"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."
How can I help you explore Laravel packages today?