Easier spies, stubs, and mocks for PHP testing
-
Updated
Feb 10, 2022 - PHP
Easier spies, stubs, and mocks for PHP testing
php-mock is a lightweight PHP library for dynamically creating mock objects for classes and interfaces and functions. It enables easy method mocking, supports class inheritance and interface implementation, and allows flexible customization of mock behavior, making it ideal for unit testing.
Provides a simple way to mock built-in PHP functions in PHPUnit tests
Add a description, image, and links to the mock-functions topic page so that developers can more easily learn about it.
To associate your repository with the mock-functions topic, visit your repo's landing page and select "manage topics."