PHPackages                             odino/humock - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. odino/humock

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

odino/humock
============

0.0.1(14y ago)17PHP

Since May 13Pushed 14y ago1 watchersCompare

[ Source](https://github.com/odino/Humock)[ Packagist](https://packagist.org/packages/odino/humock)[ RSS](/packages/odino-humock/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Experiment in progress
======================

[](#experiment-in-progress)

Humock - Human-friendly behat context
=====================================

[](#humock---human-friendly-behat-context)

Humock (*human mock*) is a lightweight Behat context able to let you use convenient methods to leverage the power of Mink, an abstraction layer for functional testing.

With Humock you can combine Behat and Mink easily, so being able to do BDD during functional testing.

An example test will look like:

```
class FeatureContext extends Humock\Context
{
    /**
     * @Given /^I am on the homepage$/
     */
    public function iAmOnTheHomepage()
    {
        $this->visit("http://website.com");
    }

    /**
     * @Given /^I click on "([^"]*)"$/
     */
    public function iClickOn($link)
    {
        $this->click($link);
    }

```

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

[](#installation)

The recommended installation is done via `composer`:

```
git clone git@github.com:odino/Humock.git

wget http://getcomposer.org/composer.phar

php composer.phar install

```

Then you can start writing your tests extending the `Tester`:

```
class FeatureContext extends Humock\Context
{
    ...

```

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

5206d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/328420?v=4)[Alex Nadalin](/maintainers/odino)[@odino](https://github.com/odino)

---

Top Contributors

[![odino](https://avatars.githubusercontent.com/u/328420?v=4)](https://github.com/odino "odino (11 commits)")

### Embed Badge

![Health badge](/badges/odino-humock/health.svg)

```
[![Health](https://phpackages.com/badges/odino-humock/health.svg)](https://phpackages.com/packages/odino-humock)
```

###  Alternatives

[drevops/behat-steps

Collection of steps for Behat

27451.5k5](/packages/drevops-behat-steps)[drupal/drupal-extension

Drupal extension for Behat

22115.8M179](/packages/drupal-drupal-extension)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k52](/packages/civicrm-civicrm-core)[drupal/core-dev

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

2023.2M366](/packages/drupal-core-dev)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

39255.4k37](/packages/ec-europa-toolkit)[dmore/chrome-mink-driver

Mink driver for controlling chrome without selenium

7515.5M430](/packages/dmore-chrome-mink-driver)

PHPackages © 2026

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