mockery

Test double framework

A PHP framework for creating test doubles to isolate dependencies and make unit testing easier.

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).

GitHub

11k stars
73 watching
457 forks
Language: PHP
last commit: about 1 month ago
Linked from 3 awesome lists

mockmockerymockingphpphpunitstubtest-doubles

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
php-mock/php-mock A testing library that mocks non-deterministic built-in PHP functions to simplify unit tests 359
mockoon/mockoon A tool to design and run mock APIs locally, allowing developers to speed up development, test applications in a controlled environment, and simulate edge cases. 6,665
nuysoft/mock Generates simulated data for front-end development and testing 19,540
mockyabstract/mocky An online service that allows users to generate custom HTTP responses for testing and development purposes. 2,068
mockito/mockito A popular mocking framework used in unit tests written in Java 14,941
phake/phake A PHP framework for creating mock objects and test doubles to simplify testing of code 478
internations/http-mock Allows mocking of HTTP requests in unit tests to enable integration testing with the HTTP side. 391
sabirvirtuoso/mockit A Swift mocking framework for unit testing with features such as stubbing, mocking, call verification, and argument matching. 120
dionisiydk/mocketry A framework for creating mock objects and stubbing messages in Smalltalk programming language. 18
phpspec/prophecy A mocking framework for testing PHP applications 8,528
mockito/mockito-kotlin A Kotlin library providing helper functions to work with Mockito in tests. 3,113
mindflayer/python-mocket A framework for mocking socket and HTTP interactions in Python applications for testing and development. 286
unclecheese/silverstripe-mock-dataobjects A module providing intelligent content generation and mock data functionality for DataObjects in a PHP-based content management system. 18
mocktools/ruby-dns-mock A tool that mimics DNS records for testing environments. 66
tpounds/mockitopp A C++ mocking framework inspired by Mockito, providing a simple and lightweight way to mock dependencies in unit testing. 77