2017 © Pedro Peláez
 

library humock

image

odino/humock

  • Sunday, May 20, 2012
  • by odino
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Experiment in progress

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., (*1)

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

An example test will look like:, (*3)

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

The recommended installation is done via composer:, (*4)

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:, (*5)

class FeatureContext extends Humock\Context
{
    ...

The Versions