Registry / testing / codeception-stub

codeception-stub

JSON →
library4.3.0phppackagistunverified

Flexible Stub wrapper for PHPUnit's Mock Builder

composer require codeception/stub
INSTALL
IMPORT
SIG · CODECEPTION-STUB
C
codeception-stub
testingphpv4.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.

Stub
✓ use Codeception\Stub;

Create a stub object with predefined methods

use Codeception\Stub; $user = Stub::make('User', ['getName' => 'John']); echo $user->getName(); // John
Debug
Known issues
breakingDepends on PHPUnit; version compatibility matters
fix
Use version 4.x with PHPUnit 9.x; check composer.json for constraints
affects: >=4.0
Upgrade
Version history
4.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
codeception-stub — pip install codeception-stub · libregistry