A php framework for testing your business expectations.
Learn Behavior Driven Development with Behat
Registerfor Behat/BDD training Read
Quick Intro Guide Read Behat2 Documentation Guides
Getting started with Behat is as easy as
vim composer.json
{
"require": {
"behat/behat": "2.4.*@stable"
},
"config": {
"bin-dir": "bin/"
}
}
curl http://getcomposer.org/installer | php
php composer.phar install --prefer-source
bin/behat --init
vim features/your_first.feature
Feature: Your first feature
In order to start using Behat
As a manager or developer
I need to try
Scenario: Successfully describing scenario
Given there is something
When I do something
Then I should see something
bin/behat