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: Installation requires a C++ compiler installed, most probably. npm i native-exec

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

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

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" "" ) func main() { ctx := exec.Interactive

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

ThrowTheSwitch CMock - Mock/stub generator for C Getting Started > git clone --recursive > 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

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

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("")) .R

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

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 Requirements Go 1.10 or above. PHP Fun