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 1 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();...