Registry / testing / mockery-mockery

mockery-mockery

JSON →
library1.6.12phppackagistunverified

Mockery is a simple yet flexible PHP mock object framework

composer require mockery/mockery
INSTALL
IMPORT
SIG · MOCKERY-MOCKERY
M
mockery-mockery
testingphpv1.6.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mockery
use Mockery;

Creating a mock object with Mockery

use Mockery; $mock = Mockery::mock('MyClass'); $mock->shouldReceive('method')->once()->andReturn('value'); echo $mock->method(); // value
Debug
Known issues
gotchaMockery 1.x requires PHP 7.3+ and uses legacy mocking patterns
fix
Use Mockery::close() in tearDown to avoid test pollution
affects: >=1.0.0
Upgrade
Version history
1.6.12latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
mockery-mockery — pip install mockery-mockery · libregistry