2017 © Pedro Peláez
 

library mock-client

Mock HTTP client

image

php-http/mock-client

Mock HTTP client

  • Monday, January 8, 2018
  • by mark.sagikazar
  • Repository
  • 6 Watchers
  • 11 Stars
  • 194,679 Installations
  • PHP
  • 209 Dependents
  • 2 Suggesters
  • 8 Forks
  • 3 Open issues
  • 11 Versions
  • 26 % Grown

The README.md

Mock Client

Latest Version Software License Build Status Total Downloads, (*1)

Mock HTTP client, (*2)

Install

Via Composer, (*3)

composer require --dev php-http/mock-client

Usage

This client does not actually send requests to any server., (*4)

Instead it stores the request and returns a pre-set response or throws an exception. This client is useful for unit testing code that depends on a HTTPlug client to send requests and receive responses., (*5)

Documentation

Please see the mock client section in the official documentation., (*6)

Testing

composer test

Contributing

Please see our contributing guide., (*7)

Security

If you discover any security related issues, please contact us at security@php-http.org., (*8)

Credits

Thanks to David de Boer for implementing the mock client., (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions