PHPackages                             computablefacts/behat-contexts - 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. computablefacts/behat-contexts

ActiveProject[Testing &amp; Quality](/categories/testing)

computablefacts/behat-contexts
==============================

Contexts ready to use with Behat.

v0.3(6y ago)0105Apache-2.0PHPPHP &gt;=7.1CI failing

Since Oct 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/computablefacts/behat-contexts)[ Packagist](https://packagist.org/packages/computablefacts/behat-contexts)[ RSS](/packages/computablefacts-behat-contexts/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

ComputableFacts Behat Contexts
==============================

[](#computablefacts-behat-contexts)

Different contexts ready to use with Behat for testing our projects.

This Behat context is inspire by [Imbo Behat API Extension](https://github.com/imbo/behat-api-extension) that is great to test REST API with Behat.

When using Laravel to develop a REST API, we want to be able to use Laravel testing framework (like Facade) but Imbo Behat API Extension use the Guzzle HTTP Client. It's why we create this Behat context that have the same Behat steps than Imbo Behat API Extension but use the Laracast Behat Laravel Extension to have access to the Laravel Framework.

Installation
------------

[](#installation)

The easiest way to install is by using [Composer](https://getcomposer.org):

`$> composer require --dev computablefacts/behat-contexts`

Usage
-----

[](#usage)

### ApiContext

[](#apicontext)

It's the main class. You can extend this class for your Behat context:

```
