News Feed
Sections




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

Alessandro Nadalin's Blog:
Behaviour what?
August 30, 2011 @ 09:22:15

In a recent post to his blog Alessandro Nadalin looks at a different approach to development than the usual code-first, ask questions later style, behavior-driven development, and a tool that can help you follow this method - Behat.

Although this requirement is not mandatory, BDD's power is leveraged by using stories. It basically assumes that instead of focusing on tests, we should start our development process writing down a story that a parser can translate into a test (a customer cares about features, not tests) a programmer can implement in order to verify that our software respects that story.

He talks about installing Behat via PEAR, how it can integrate with Symfony (1.4) and an example of a sample story/test file that checks a few things against a basic page. He also points out an interesting and quite useful feature of Behat - outputting the tests in a HTML-formatted result that makes for easy reading by non-developers.

0 comments voice your opinion now!
behat behaviordriven development symfony integration testing


blog comments powered by Disqus

Similar Posts

Sebastian Bergmann\'s Blog: PHPUnit Talk at PHP Usergroup Munich

Symfony Blog: Welcome to the new symfony 1.0's release manager

Arnold Daniels' Blog: Migrating from PHP4 to PHP5: A strategy for hosts

Roy Ganor's Blog: 1 Community, Dozen programmers, 1186 bugs & one quest for transcendent PHP editor

CodeIgniter.com: New User Guide in Development


Community Events

Don't see your event here?
Let us know!


laravel framework example opinion series release api voicesoftheelephpant php7 podcast application interview part2 configure introduction conference composer symfony2 performance community

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework