News Feed
Sections




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

Francesco Tassi:
Switching From TDD to BDD With Behat and Symfony2
August 16, 2013 @ 13:27:32

In this new post to his site Francesco Tassi shares his experience making the switch from doing just test-driven development on his Symfony2-based applications to behavior-driven development using Behat, Mink and PHPSpec.

Recently I started a small extra project with a smart fellow from my local PHP User Group, since the project was quite simple and both of us were willing to learn something new, we decided to give BDD a try. In the PHP world BDD means Behat, Mink and PHPSpec. [...] In this post I won't cover all the details about BDD, Behat or PHPSpec, I'd rather describe how I switched from PHPUnit and TDD to BDD (and also show some bits of code).

He talks about the switch in mindset that comes along with adopting BDD and how you think about testing - not what it does, but what it should do. He talks some about test organization, configuration and his process for executing them. There's a bit about working with databases (with fixtures and @BeforeScenario) including the code for the feature file to make it happen.

0 comments voice your opinion now!
tdd testdriven bdd behaviordriven behat symfony2 tutorial

Link: http://www.ftassi.com/blog/2013/08/12/switching-from-tdd-to-bdd-with-behat-and-symfony2

blog comments powered by Disqus

Similar Posts

Nick Belhomme's Blog: PHP 5.3.3 Namespaces

Zend Developer Zone: Building AutoComplete Inputs with PHP, PEAR, Dojo and YUI

Lorna Mitchell's Blog: PHP OAuth Provider: Request Tokens

Matthew Weier O'Phinney: RESTful APIs with ZF2, Part 3

Idrish Laxmidhar's Blog: How to send mail from Localhost with XAMPP and mercury/32


Community Events





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


podcast library laravel interview api language deployment install opinion update zendserver framework symfony release introduction list tips series community package

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