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: almost 2 years ago
Linked from 3 awesome lists

mockmockerymockingphpphpunitstubtest-doubles

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
php-mock/php-mockA testing library that mocks non-deterministic built-in PHP functions to simplify unit tests359
mockoon/mockoonA 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/mockGenerates simulated data for front-end development and testing19,540
mockyabstract/mockyAn online service that allows users to generate custom HTTP responses for testing and development purposes.2,068
mockito/mockitoA popular mocking framework used in unit tests written in Java14,941
phake/phakeA PHP framework for creating mock objects and test doubles to simplify testing of code478
internations/http-mockAllows mocking of HTTP requests in unit tests to enable integration testing with the HTTP side.391
sabirvirtuoso/mockitA Swift mocking framework for unit testing with features such as stubbing, mocking, call verification, and argument matching.120
dionisiydk/mocketryA framework for creating mock objects and stubbing messages in Smalltalk programming language.18
phpspec/prophecyA mocking framework for testing PHP applications8,528
mockito/mockito-kotlinA Kotlin library providing helper functions to work with Mockito in tests.3,113
mindflayer/python-mocketA framework for mocking socket and HTTP interactions in Python applications for testing and development.286
unclecheese/silverstripe-mock-dataobjectsA module providing intelligent content generation and mock data functionality for DataObjects in a PHP-based content management system.18
mocktools/ruby-dns-mockA tool that mimics DNS records for testing environments.66
tpounds/mockitoppA C++ mocking framework inspired by Mockito, providing a simple and lightweight way to mock dependencies in unit testing.77