Install or enable PEAR on Mac OSX Lion 10.7

It seems that Mac OSX Lion (10.7) ships pear not totally installed… Why ? I don’t know…
But here is the easiest way to install or enable pear to work correctly on your system :

Read more →

Fill in field with param in Behat & Mink

Behat offers a definition called “fill in <field> with <value>” that works great.

We found that sometimes, test can be exactly the same in a development and production environments, sometime because the databases are not synced or updated, or sometimes because it can’t. Example : your project uses an authentication system based on an external SSO that you don’t manage and they don’t provide the samed credentials in integration, staging and production.

Having values in features is not always adapted to multiple environment.
So, i wrote a new and simple definition for behat / mink to allow you to fill a field with a value setup in behat.yml.
I called this definition “fill in <field> with param <param_name>”, and it allows you to have a different value for a param in each of your profiles.

Read more →

How to install Behat & Mink on Mac OSX

Behat is a Behaviour Driven Development framework developed in PHP.
It allows you to create functional tests based on a human reading language, Gherkin.

The easiest way to install all this stuff is using PEAR.
If you don’t have PEAR, you can install it using MacPort (Linux users can do the same via apt or whatever)
It requires php5 and some extensions that can be installed like that :

Read more →