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

PHP-Mock: mocking built-in PHP functions PHP-Mock is a testing library which mocks non deterministic built-in PHP functions like time() or rand(). This is achieved by PHP's namespace fallback policy: PHP will fall back to glo

Related Repos



OrKoN native-exec Module that provides access to POSIX exec* functions. Inspired by: https://github.com/jprichardson/node-kexec Installation requires a C++ compiler installed, most probably. npm i native-exec
 
387

InterNations HTTP Mock for PHP Mock HTTP requests on the server side in your PHP unit tests. HTTP Mock for PHP mocks the server side of an HTTP request to allow integration testing with the HTTP side. It uses PHP’s builtin web server t
 
14

jaswdr Go http mock server Mock your APIs in a really fast, robust and comprehensive way Install go get github.com/jaschweder/go-http-mock-server Getting start Create a mock.json file like this: { "se
 
915

stripe stripe-mock stripe-mock is a mock HTTP server that responds like the real Stripe API. It can be used instead of Stripe's test mode to make test suites integrating with Stripe faster and less brittle. It's powered by the Stripe O
 

adlane exec A golang package to interact with a process running in background Example package main import ( "fmt" "time" "github.com/adlane/exec" ) func main() { ctx := exec.Interactive
 
37

EIrwin #stubble - Mock JSON API Generator What is stubble? Stubble is a mock JSON API generator that uses a YAML specification to define mock API endpoints and responses. Why stubble? Current API response mocking soluti
 

Raathigesh Mock data for your prototypes and demos Atmo makes creating mock web services for demos, presentations and experiments ridiculously easy. Features Mock Http endpoints SSL support Static assets di
 

bahmutov node-mock-examples Examples of tests that mock Node system APIs: fs, http, child_process, timers Practical working test examples for blog post Mock system APIs. Because mocking the stable, well documented Node system API
 

gmazzo okhttp-client-mock A simple OKHttp client mock, using a programmable request interceptor Import On your build.gradle add: dependencies { testImplementation 'com.github.gmazzo:okhttp-mock:<version>'
 

aws-containers Amazon ECS Exec Checker The check-ecs-exec.sh script allows you to check and validate both your CLI environment and ECS cluster/task are ready for ECS
 

nikic PHP Parser This is a PHP 5.2 to PHP 7.4 parser written in PHP. Its purpose is to simplify static code analysis and manipulation. Documentation for version 4.x (stable; for running on PHP >= 7.0; for parsing PHP 5.2 to PHP
 
418

ThrowTheSwitch CMock - Mock/stub generator for C Getting Started > git clone --recursive https://github.com/throwtheswitch/cmock.git > cd cmock > bundle install # Ensures you have all RubyGems needed > bundle exec rake
 

noru Vue-Resource-Mock This package requires no specific version of Vue but vue-resource. It works for both Vue/Vue2 as the time of this writing. Copy and
 

dantheman213 Ocean SQL Profiler Cross-platform SQL profiler for PostgreSQL 9.3+. View your queries and functions being run in real-time in a simple to use GUI. Features View your PostgresSQL functions and queries being exec
 
3.9k

DATA-DOG Sql driver mock for Golang sqlmock is a mock library implementing sql/driver. Which has one and only purpose - to simulate any sql driver behavior in tests, without needing a real database connection. It helps to maintain co
 
Popular
4.3k

Moq moq The most popular and friendly mocking library for .NET var mock = new Mock<ILoveThisLibrary>(); // WOW! No record/replay weirdness?! :) mock.Setup(library => library.DownloadExists("2.0.0.0")) .R
 
234

mirrajabi okhttp-json-mock This simple library helps you mock your data for using with okhttp+retrofit in json format in just a few moves. it forwards the requests to local json files and returns the data stored in them. Vers
 

posva vuex-mock-store Simple and straightforward mock for Vuex v3.x Store Automatically creates spies on commit and dispatch so you can focus on testing your component without executing your store code. Help me keep working
 

iredelmeier filesystem-rs Real, fake, and mock implementations of file system operations. Documentation filesystem-rs provides real, fake, and mock implementation
 
CMS
45

Anyon3 NinjaCMS ABOUT forbidden the access web for the following directory : cache/ php/Crypt/ php/File/ php/La/ php/Math/ php/Net/ php/System/ php/Library/ php/security/ EXTRA The directory extra/ contain the
 

syyongx PHP2Go Use Golang to implement PHP's common built-in functions. About 140+ functions have been implemented. Install go get github.com/syyongx/php2go Requirements Go 1.10 or above. PHP Fun