Registry / testing / granam-test-with-mockery

granam-test-with-mockery

JSON →
library2.0.0phppackagistunverified

Mockery test helper ensuring mocked method exists, preventing accidental mock creation for non-existent methods.

composer require granam/test-with-mockery
INSTALL
IMPORT
SIG · GRANAM-TEST-WITH-M
G
granam-test-with-mockery
testingphpv2.0.0
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.

TestWithMockery
use Granam\TestWithMockery\TestWithMockery;

Create a mock that verifies the method exists on the object.

use Granam\TestWithMockery\TestWithMockery; $helper = new TestWithMockery(); $mock = $helper->mockMethod($object, 'methodName', 'returnValue');
Debug
Known issues
breakingRequires PHP 7.4+ and Mockery 1.0+.
fix
Ensure your project meets minimum PHP and Mockery version requirements.
affects: >=2.0.0
Upgrade
Version history
2.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
granam-test-with-mockery — pip install granam-test-with-mockery · libregistry