Registry / testing / php-mock-php-mock-prophecy

php-mock-php-mock-prophecy

JSON →
library0.1.4phppackagistunverified

Mock built-in PHP functions (e.g. time()) with Prophecy. This package relies on PHP's namespace fallback policy. No further extension is needed.

composer require php-mock/php-mock-prophecy
INSTALL
IMPORT
SIG · PHP-MOCK-PHP-MOCK-
P
php-mock-php-mock-prophecy
testingphpv0.1.4
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.

MockProphet
✓ use phpmock\prophyp\MockProphet;

Mock PHP built-in functions using Prophecy

use phpmock\prophyp\MockProphet; $prophet = new MockProphet(); $prophet->prophesize('time')->willReturn(1234567890); echo time(); // 1234567890
Debug
Known issues
breakingRequires PHP 7.0+ and namespace fallback policy
fix
Ensure your code uses namespaces and PHP version >=7.0
affects: <0.2.0
Upgrade
Version history
0.1.4latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
php-mock-php-mock-prophecy — pip install php-mock-php-mock-prophecy · libregistry