Repo demonstrating how to test a REST API with behat
You will need to install composer first.
#composer
curl -s http://getcomposer.org/installer | php
php composer.phar install
Now setup a vhost for foo.local pointing the the project's public dir.