Sign in

Repository Index

47,133 repositories indexed

Tags: Mocking
Tags

A repository shows when it has any selected Tag.

Clear Tags
Filters

Filters

Clear all filters

1–24 of 45 · Most stars

A toolkit with common assertions and mocks that plays nicely with the standard library

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).

  • mockery
  • phpunit
  • php
  • stub

Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.

MockServer is an HTTP(S) mock server and proxy for testing that lets you mock APIs, inspect and modify live traffic, and inject failures. It supports HTTP/1.1, HTTP/2, gRPC, WebSockets, TCP and more on a single port, with additional support for HTTP/3, message brokers, and AI/LLM APIs.

  • mock-server
  • proxy
  • java-client
  • javascript-client

A gem providing "time travel", "time freezing", and "time acceleration" capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.

vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.

Record and replay your HTTP interactions for fast, deterministic and accurate tests

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.

Mock Alamofire and URLSession requests without touching your code implementation

  • wt-branch-protection-two-approvals
  • wt-branch-protection-exempt

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.

  • pact
  • consumer-driven-contracts
  • contract-testing
  • hacktoberfest

Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.