Registry / testing / codeception-aspect-mock

codeception-aspect-mock

JSON →
library4.1.1phppackagistunverified

Experimental Mocking Framework powered by Aspects.

composer require codeception/aspect-mock
INSTALL
IMPORT
SIG · CODECEPTION-ASPECT
C
codeception-aspect-mock
testingphpv4.1.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.

Test
use AspectMock\Test\Test;

Create a mock for a class using AspectMock.

use AspectMock\Test\Test; $userMock = Test::double('App\User', ['getName' => 'John']); echo $userMock->getName(); // John
Debug
Known issues
gotchaRequires the AOP extension (e.g., Go! AOP) and may conflict with other AOP libraries.
fix
Ensure only one AOP framework is loaded; disable opcache.preload if used.
affects: >=4.0.0
Upgrade
Version history
4.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

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