php-mock

Function mocking library

A testing library that mocks non-deterministic built-in PHP functions to simplify unit tests

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

GitHub

359 stars
11 watching
19 forks
Language: PHP
last commit: over 1 year ago
Linked from 1 awesome list

builtin-functionsmockphp

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
ferada/cl-mock A library for easily replacing parts of existing functions with mock implementations. 19
jjh42/mock A library for mocking functions in Elixir tests 656
phake/phake A PHP framework for creating mock objects and test doubles to simplify testing of code 478
help-me-mom/ng-mocks A testing library for mocking components and services in Angular applications. 1,067
codeception/aspectmock A PHP library that enables AOP-based mocking and stubbing of static methods and class methods. 789
sabirvirtuoso/mockit A Swift mocking framework for unit testing with features such as stubbing, mocking, call verification, and argument matching. 120
mockyabstract/mocky An online service that allows users to generate custom HTTP responses for testing and development purposes. 2,068
internations/http-mock Allows mocking of HTTP requests in unit tests to enable integration testing with the HTTP side. 391
appunite/mockery A library that provides a simple way to mock functions in asynchronous Elixir testing 92
alexliesenfeld/httpmock A library that enables developers to mock HTTP responses and test their applications in isolation. 491
tpounds/mockitopp A C++ mocking framework inspired by Mockito, providing a simple and lightweight way to mock dependencies in unit testing. 77
eratio08/vitest-mock-extended A library that provides type-safe mocking extensions for testing with Vitest. 174
leoture/mockswift A library that allows you to write mocks and make better tests with Swift 90
fakeiteasy/fakeiteasy A dynamic fake object library for .NET, allowing developers to create easy-to-use mock and stub objects. 1,713
z4kn4fein/stashbox-mocking A library that provides automatic mock creation for unit testing integrations with Stashbox. 2