Download the PHP package macpaw/behat-http-mock-context without Composer
On this page you can find all versions of the php package macpaw/behat-http-mock-context. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download macpaw/behat-http-mock-context
More information about macpaw/behat-http-mock-context
Files in macpaw/behat-http-mock-context
Package behat-http-mock-context
Short Description Behat Context in testing mock HTTP Response other service
License MIT
Informations about the package behat-http-mock-context
Behat HTTP Mock Context
Version | Build Status | Code Coverage |
---|---|---|
main |
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute:
Applications that use Symfony Flex [in progress]
Applications that don't use Symfony Flex
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Step 2: Mock http client
Example you have http client in config/services.yaml
Now you need mock this client in config/services_test.yaml
Now we ready add build mock collection
Step 3: Configure Behat
Go to behat.yml
Step 4: How to use:
All versions of behat-http-mock-context with dependencies
behat/behat Version ^3.0
symfony/http-client Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/cache Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.0 || ^7.0
symfony/http-kernel Version ^4.4 || ^5.4 || ^6.0 || ^7.0
macpaw/extended_mock_http_client Version ^3.0 || ^4.0