PHPackages                             ubirak/moco-behat-extension - 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. ubirak/moco-behat-extension

ActiveBehat-extension[Testing &amp; Quality](/categories/testing)

ubirak/moco-behat-extension
===========================

Helper to use moco with behat

v2.0(8y ago)421.0k1[1 issues](https://github.com/ubirak/moco-behat-extension/issues)MITPHPPHP &gt;=5.5.9CI failing

Since Apr 19Pushed 6y ago5 watchersCompare

[ Source](https://github.com/ubirak/moco-behat-extension)[ Packagist](https://packagist.org/packages/ubirak/moco-behat-extension)[ Docs](https://github.com/ubirak/moco-behat-extension)[ RSS](/packages/ubirak-moco-behat-extension/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

Moco Extension for Behat 3
==========================

[](#moco-extension-for-behat-3)

[![Build Status](https://camo.githubusercontent.com/54c33b541d8adb79b54a9481c5b150936865481e99e97555b0721b1a6c998206/68747470733a2f2f7472617669732d63692e6f72672f75626972616b2f6d6f636f2d62656861742d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ubirak/moco-behat-extension)

[Moco](https://github.com/dreamhead/moco) is a stub server we used to use in test env.

Here is a small extension to make its usage more friendly.

Warning
-------

[](#warning)

Vendor namespace changed from `Rezzza` to `Ubirak` in `2.0`

Usage
-----

[](#usage)

```
default:
    extensions:
        Ubirak\MocoBehatExtension\MocoExtension:
            json_file: features/fixtures.json
            hostname: 127.0.0.1
            port: 9997
    suites:
        default:
            contexts:
                - Ubirak\MocoBehatExtension\MocoContext
```

Then you just need to add `MocoWriter` as an argument of your context and tag your scenario with `@moco`

[See tests](features) for more details

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~149 days

Total

5

Last Release

3075d ago

Major Versions

v1.2.0 → v2.02017-12-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/71b2691f4ac490f3ae00553c722631e184283c2677e2da3f68af8d85e17dc7ce?d=identicon)[tyx](/maintainers/tyx)

---

Top Contributors

[![tyx](https://avatars.githubusercontent.com/u/245494?v=4)](https://github.com/tyx "tyx (15 commits)")[![shouze](https://avatars.githubusercontent.com/u/54712?v=4)](https://github.com/shouze "shouze (5 commits)")

---

Tags

behat-extensionhttpmockstubthird-party

### Embed Badge

![Health badge](/badges/ubirak-moco-behat-extension/health.svg)

```
[![Health](https://phpackages.com/badges/ubirak-moco-behat-extension/health.svg)](https://phpackages.com/packages/ubirak-moco-behat-extension)
```

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

22215.1M146](/packages/drupal-drupal-extension)[friends-of-behat/symfony-extension

Integrates Behat with Symfony.

48223.4M547](/packages/friends-of-behat-symfony-extension)[friends-of-behat/variadic-extension

Variadic support for behat context arguments

2286.0M443](/packages/friends-of-behat-variadic-extension)[friends-of-behat/mink-extension

Mink extension for Behat

14034.2M466](/packages/friends-of-behat-mink-extension)[friends-of-behat/suite-settings-extension

Allows to overwrite suites' default settings.

2154.1M386](/packages/friends-of-behat-suite-settings-extension)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)

PHPackages © 2026

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