News Feed
Sections




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

PHPImpact Blog:
TDD with Symfony The first test always fails
July 02, 2008 @ 09:33:26

On the PHP::Impact blog, Federico Cargnelutti has posted about test-driven design, specifically with the Symfony framework.

Symfony is one of the few PHP frameworks that gives you basic tools for starting to write tests. [...] Symfony also provides an extension of this class called sfTestBrowser, designed especially for functional tests, which has all the abilities of the sfBrowser object plus some smart assert methods.

He uses this sfTestBrowser object to run an example test on a same get() call's response. It should match the regular expression of "/This is a temporary page/" but doesn't so it fails. Writing up tests like this for new parts of your application first would be considered test-driven development and the Symfony framework makes that simple.

0 comments voice your opinion now!
testdrivendevelopment tdd symfony framework test component module


blog comments powered by Disqus

Similar Posts

Community News: Zend Framework Preview 0.1.2 Released

Web Mozarts: Resource Discovery with Puli

NetTuts.com: Diving Into Symfony 2

ServerGrove Blog: Symfony2 components overview: ExpressionLanguage

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 12)


Community Events

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


install performance configure interview library php7 opinion podcast example community language api symfony2 introduction application series laravel conference framework release

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