PHPackages                             macpaw/behat-http-mock-context - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. macpaw/behat-http-mock-context

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

macpaw/behat-http-mock-context
==============================

Behat Context in testing mock HTTP Response other service

v3.0.4(2y ago)4194.2k↓46.8%1[2 PRs](https://github.com/MacPaw/behat-http-mock-context/pulls)MITPHPPHP ^8.0

Since Dec 8Pushed 1y ago2 watchersCompare

[ Source](https://github.com/MacPaw/behat-http-mock-context)[ Packagist](https://packagist.org/packages/macpaw/behat-http-mock-context)[ RSS](/packages/macpaw-behat-http-mock-context/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (8)Dependencies (10)Versions (11)Used By (0)

Behat HTTP Mock Context
=======================

[](#behat-http-mock-context)

VersionBuild StatusCode Coverage`main`[![CI](https://github.com/macpaw/behat-http-mock-context/workflows/CI/badge.svg?branch=main)](https://github.com/macpaw/behat-http-mock-context/actions?query=workflow%3ACI+branch%3Amain)[![Coverage Status](https://camo.githubusercontent.com/a0871d8222ae91ff70c893cfdd2698fd8b9fc2b75d760bfc3445602cde2a988f/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6d61637061772f62656861742d687474702d6d6f636b2d636f6e746578742f6d61696e3f6c6f676f3d636f6465636f76)](https://codecov.io/gh/macpaw/behat-http-mock-context/branch/main)Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute:

### Applications that use Symfony Flex \[in progress\]

[](#applications-that-use-symfony-flex-in-progress)

```
$ composer require --dev macpaw/behat-http-mock-context
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-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:

```
$ composer require --dev macpaw/behat-http-mock-context
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)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:

```
