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

Mock built-in PHP functions (e.g. time() or rand()) in PHPUnit.

Results 6 php-mock-phpunit issues
Sort by recently updated
recently updated
newest added

[feat/add-badge-poser feb6d8a] We suggest to use badge poser to show additional information about your library. Enjoy

First of all I just want to say I really like the library, thank you so much for creating it :) I do think this Exception Message should be improved....

enhancement
help wanted

https://github.com/php-mock/php-mock-phpunit/blob/7df4bd123ce196bbba19f142c4906c20be8ec546/classes/DefaultArgumentRemoverReturnTypes84.php#L41

When invoking testCorrectOtp it's the time stub defined in testNotExpiredOtp runs. Doesn't seem like correct and expected behaviour. ```

When invoking getFunctionMock I am getting the following deprecation warnings. * MockBuilder::addMethods() is deprecated and will be removed in PHPUnit 12 without replacement. * MockBuilder::getMockForAbstractClass() is deprecated and will be...

help wanted