PHPackages                             exozet/behat-utils - 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. exozet/behat-utils

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

exozet/behat-utils
==================

The `exozet/behat-utils` provides some traits for easier api testing with behat and mink.

0.8.1(7y ago)05.0k1[2 issues](https://github.com/exozet/behat-utils/issues)MITPHP

Since Mar 27Pushed 7y ago6 watchersCompare

[ Source](https://github.com/exozet/behat-utils)[ Packagist](https://packagist.org/packages/exozet/behat-utils)[ RSS](/packages/exozet-behat-utils/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (8)Dependencies (3)Versions (12)Used By (0)

exozet/behat-utils
==================

[](#exozetbehat-utils)

[![Build Status](https://camo.githubusercontent.com/40aebfa21efe1e3859be3cbd0f068b28dd810b3dd5ac0350873d3937507dfbdb/68747470733a2f2f7472617669732d63692e6f72672f65786f7a65742f62656861742d7574696c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/exozet/behat-utils)

The `exozet/behat-utils` provide some traits for easier testing of websites and web services using Behat and Mink.

Usage
-----

[](#usage)

```
$ composer require exozet/behat-utils
```

and add

```
use \Exozet\Behat\Utils\Base\JsonApiSteps;
```

to your context, like this:

```
class ServiceContext extends \Behat\MinkExtension\Context\MinkContext
{
    use \Exozet\Behat\Utils\Base\JsonApiSteps;
}
```

That's it!

Traits
------

[](#traits)

### JsonApiSteps

[](#jsonapisteps)

The `JsonApiSteps` are helpful for testing JSON APIs.

### WebsiteInteractionSteps

[](#websiteinteractionsteps)

The `WebsiteInteractionSteps` simplify DOM-based interactions with websites.

### SpinnedMinkSteps

[](#spinnedminksteps)

The `SpinnedMinkSteps` allow calling default MinkContext steps while allowing a specified timeout.

### ConditionSteps

[](#conditionsteps)

The `ConditionSteps` offer steps that only continue the test execution under specific conditions, marking the tests as "Pending" otherwise.

### HelpUtils

[](#helputils)

The `HelpUtils` offer helper functions that can be useful for defining own steps.

Development of behat-utils
--------------------------

[](#development-of-behat-utils)

If you want to develop on those utils, please use chromedriver and run it like this:

```
$ chromedriver --whitelisted-ips='*'
```

Then use the embedded docker-compose.yml and run a php-cli like this:

```
$ docker-compose run --rm php-cli
www-data $ bash setup-dev.sh
www-data $ vendor/bin/behat -p local
www-data $ ./vendor/bin/phpunit --bootstrap vendor/autoload.php --testdox tests
```

LICENSE
-------

[](#license)

The behat-utils is copyright by Exozet () and licensed under the terms of MIT License.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 80.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~77 days

Recently: every ~30 days

Total

10

Last Release

2688d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40ec115d06e25c329149d65212b791c88ed935ef74ed144f40f2336cbfd3079a?d=identicon)[DracoBlue](/maintainers/DracoBlue)

---

Top Contributors

[![bakoe](https://avatars.githubusercontent.com/u/807665?v=4)](https://github.com/bakoe "bakoe (42 commits)")[![DracoBlue](https://avatars.githubusercontent.com/u/35926?v=4)](https://github.com/DracoBlue "DracoBlue (5 commits)")[![Apfelschorle2017](https://avatars.githubusercontent.com/u/30110896?v=4)](https://github.com/Apfelschorle2017 "Apfelschorle2017 (4 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (1 commits)")

---

Tags

BDDMinkBehatgherkin

### Embed Badge

![Health badge](/badges/exozet-behat-utils/health.svg)

```
[![Health](https://phpackages.com/badges/exozet-behat-utils/health.svg)](https://phpackages.com/packages/exozet-behat-utils)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k100.2M2.2k](/packages/behat-behat)[drupal/drupal-extension

Drupal extension for Behat

22215.7M167](/packages/drupal-drupal-extension)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M324](/packages/drupal-core-dev)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k42.5M39.3k](/packages/orchestra-testbench)[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.6M28](/packages/sensiolabs-behat-page-object-extension)[polishsymfonycommunity/symfony2-mocker-extension

Behat extension for mocking services defined in the Symfony2 dependency injection container.

26253.5k4](/packages/polishsymfonycommunity-symfony2-mocker-extension)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
