php-mock-mockery icon indicating copy to clipboard operation
php-mock-mockery copied to clipboard

Mock non deterministic built-in PHP functions (e.g. time() or rand()) with Mockery.

Results 2 php-mock-mockery issues
Sort by recently updated
recently updated
newest added

Is it possible to use the mocked json_decode for unit testing SomeClass::someMethod? Where in someMethod() contains json_decode? ### Summarized code snippet: **test Method:** PHPMockery::mock(__NAMESPACE__, "json_decode") ->andReturn("test"); $classMock = new SomeClass();...

Pest 3.7.4 Mockery 1.6.12 php-mock-mockery 1.5.0 Given the following test file _test.php_ ```php