Registry / testing / stk2k-decoy

stk2k-decoy

JSON →
library0.3.0phppackagistunverified

PHP lightweight mock framework

composer require stk2k/decoy
INSTALL
IMPORT
SIG · STK2K-DECOY
S
stk2k-decoy
testingphpv0.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.

Decoy
use stk2k\Decoy\Decoy;

Create a simple mock for functions

use stk2k\Decoy\Decoy; $mock = new Decoy(); $mock->add('functionName', 'returnValue'); echo $mock->call('functionName'); // 'returnValue'
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
stk2k-decoy — pip install stk2k-decoy · libregistry