Registry / testing / jangregor-phpstan-prophecy

jangregor-phpstan-prophecy

JSON →
library2.3.0phppackagistunverified

Provides a phpstan/phpstan extension for phpspec/prophecy

composer require jangregor/phpstan-prophecy
INSTALL
IMPORT
SIG · JANGREGOR-PHPSTAN-
J
jangregor-phpstan-prophecy
testingphpv2.3.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.

Prophet
use JanGregor\Prophecy\Prophet;

Create a prophecy mock using the PHPStan extension

use JanGregor\Prophecy\Prophet; $prophet = new Prophet(); $prophecy = $prophet->prophesize(SomeClass::class); $prophecy->someMethod()->willReturn('mocked'); $object = $prophecy->reveal();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jangregor-phpstan-prophecy — pip install jangregor-phpstan-prophecy · libregistry