Download the PHP package macpaw/extended_mock_http_client without Composer
On this page you can find all versions of the php package macpaw/extended_mock_http_client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download macpaw/extended_mock_http_client
More information about macpaw/extended_mock_http_client
Files in macpaw/extended_mock_http_client
Download macpaw/extended_mock_http_client
More information about macpaw/extended_mock_http_client
Files in macpaw/extended_mock_http_client
Vendor macpaw
Package extended_mock_http_client
Short Description This repository provides mocks for Symfony HTTP Client, it more flexible than default Symfony mock
License MIT
Package extended_mock_http_client
Short Description This repository provides mocks for Symfony HTTP Client, it more flexible than default Symfony mock
License MIT
Please rate this library. Is it a good library?
Informations about the package extended_mock_http_client
ExtendedMockHttpClient
Version | Build Status | Code Coverage |
---|---|---|
master |
Install
How to use
In config file config/services_test.yaml
replace current HTTP client service
That's all, you can use it in PHPUnit tests
Examples
Simple examples
Using builder examples
Using callbacks in request and response examples
Hot to register custom Comparator
Create comparator class, it should implement ComparatorInterface
Overwrite HttpFixtureFactory
for adding where you can use the new comparator
Use the new comparator in test
Hot to overwrite HttpFixtureBuilderFactory for using more useful builder method
Create custom builder class which based on original builder
Create custom builder factory class which based on original builder factory
Overwrite builder factory service
Use updated builder in tests
Todo list
- Add support jms serializer
- Add history function
- Get last request/response (or by index)
- Some kind of assert, it should check that history contain some request
- Add possibility to load fixtures from array/yaml
- Add logger and log every steps for easiest debug
All versions of extended_mock_http_client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-json Version *
symfony/cache Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/config Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/dependency-injection Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/framework-bundle Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-client Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-foundation Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-kernel Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/yaml Version ^4.4 || ^5.0 || ^6.0 || ^7.0
ext-json Version *
symfony/cache Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/config Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/dependency-injection Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/framework-bundle Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-client Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-foundation Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-kernel Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/yaml Version ^4.4 || ^5.0 || ^6.0 || ^7.0
The package macpaw/extended_mock_http_client contains the following files
Loading the files please wait ....