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
1.2.3
  • Fixed a bug where getting two mocks with different argument cloning options returned the same mock.
1.2.2
  • Fixed #100: Removed the unique mock object ID introduced in version 1.2.
1.2.1
  • No changes.
1.2.0
  • Implemented #47: Make cloning of arguments passed to mocked methods optional.
  • Implemented #84: getMockFromWsdl() now works with namespaces.
  • Fixed #90: Mocks with a fixed class name could only be created once.
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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata