Download the PHP package leeshan87/module-fake-api without Composer
On this page you can find all versions of the php package leeshan87/module-fake-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leeshan87/module-fake-api
More information about leeshan87/module-fake-api
Files in leeshan87/module-fake-api
Package module-fake-api
Short Description Asynchronous Fake Api module for Codeception
License MIT
Homepage https://github.com/LeeShan87/module-fake-api
Informations about the package module-fake-api
LeeShan87/module-fake-api
Asynchronous Fake Api module for Codeception.
This Codeception module helps to create an async FakeApi http server. This module requires react/http:^1.0.0 to work. It provides an async http server, which can
- Respond to http request
- Proxy request to an external http server
- Record proxied requests and store them on the disk It can be used in Codeception tests, if you can manage when and how to tick the FakeApi event loop Example Cept usage:
Example usage out side Codeception
Install
The recommended way to install this library is through Composer. New to Composer?
This will install the latest supported version:
See also the CHANGELOG for details about version upgrades.
This project aims to run on any platform and thus does not require any PHP extensions and supports running on legacy PHP 5.3 through current PHP 8+. It's highly recommended to use PHP 7+ for this project.
Tests
To run the test suite, you first need to clone this repo and then install all dependencies through Composer:
To run the test suite, go to the project root and run:
License
MIT
All versions of module-fake-api with dependencies
react/event-loop Version ~1.5.0
react/http Version ~1.10.0
ringcentral/psr7 Version ~1.3.0
codeception/codeception Version ^4.0
leeshan87/reactphp-multi-loop Version ~0.1
codeception/module-asserts Version ^1.0.0