Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Project:
ArrBDD - a Behavior-Driven Development Library for PHP 5
Jul 18, 2011 @ 16:14:29

Leng Sheng Hong has submitted about a project posted recently he's developed to make behavior-driven development in PHP easier - ArBDD.

ArBDD is a simple yet powerful BDD library for PHP to get you started with BDD in PHP. Excellent for those who have no previous experience with BDD.

The project's page includes some basic code definitions of behaviors the code should follow, the creation of a simple mock object and the JSON-based results that come out when the tool is executed. They've also created an AIR-based viewing tool to see the results outside the browser. The code requires PHP 5.3+ because of its use of closures.

For another example of BDD testing in action, look at the Behat framework, based on the Ruby Cucumber syntax.

tagged: behaviordriven development library arrbdd project behat

Link:


Trending Topics: