Registry / testing / sminnee-phpunit-mock-objects

sminnee-phpunit-mock-objects

JSON →
library3.4.10phppackagistunverified

Mock Object library for PHPUnit, forked to add PHP 7.4 support to version 3.4.

composer require sminnee/phpunit-mock-objects
INSTALL
IMPORT
SIG · SMINNEE-PHPUNIT-MO
S
sminnee-phpunit-mock-objects
testingphpv3.4.10
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.

MockObject
use PHPUnit\Framework\MockObject\MockObject;

Create a mock object using PHPUnit's createMock method.

use PHPUnit\Framework\MockObject\MockObject; $mock = $this->createMock(SomeClass::class); $mock->method('someMethod')->willReturn('value');
Debug
Known issues
breakingThis is a fork of an older version of PHPUnit's mock objects; may not be compatible with newer PHPUnit versions.
fix
Use the official phpunit/phpunit package for up-to-date mock object support.
affects: >=3.4.0
Upgrade
Version history
3.4.10latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
sminnee-phpunit-mock-objects — pip install sminnee-phpunit-mock-objects · libregistry