Registry / testing / phpspec-prophecy

phpspec-prophecy

JSON →
library1.26.1phppackagistunverified

Highly opinionated mocking framework for PHP 5.3+ that integrates with PHPUnit.

composer require phpspec/prophecy
INSTALL
IMPORT
SIG · PHPSPEC-PROPHECY
P
phpspec-prophecy
testingphpv1.26.1
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.

Prophet
use Prophecy\Prophet;

Create a mock object using Prophecy's prophecy system.

use Prophecy\Prophet; $prophet = new Prophet(); $mock = $prophet->prophesize('SomeClass'); $mock->someMethod()->willReturn('value'); $object = $mock->reveal();
Debug
Known issues
breakingProphecy is deprecated in favor of PHPUnit's built-in mocking; may not receive updates.
fix
Migrate to PHPUnit's mock objects using createMock().
affects: >=1.0
Upgrade
Version history
1.26.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
phpspec-prophecy — pip install phpspec-prophecy · libregistry