Registry / testing / weirdan-prophecy-shim

weirdan-prophecy-shim

JSON →
library2.0.2phppackagistunverified

Compatibility shim to be able to use ProphecyTrait with older PHPUnit versions

composer require weirdan/prophecy-shim
INSTALL
IMPORT
SIG · WEIRDAN-PROPHECY-S
W
weirdan-prophecy-shim
testingphpv2.0.2
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.

ProphecyTrait
use Weirdan\ProphecyShim\ProphecyTrait;

Use Prophecy mocking in PHPUnit tests

use Weirdan\ProphecyShim\ProphecyTrait; class MyTest extends TestCase { use ProphecyTrait; }
Debug
Known issues
gotchaOnly needed for PHPUnit < 9.5; newer versions include ProphecyTrait natively
fix
Upgrade PHPUnit to 9.5+ and remove this shim
affects: >=2.0.0
Upgrade
Version history
2.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
weirdan-prophecy-shim — pip install weirdan-prophecy-shim · libregistry