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

Flyn San: Creating a Basic ToDo Application With Laravel 4 (Tutorial Series)

Jani Hartikainen's Blog: Why does everything need to be integrated into a framework?

The Bakery: Five New Posts - Custom Views, CSS, ViewInFile, ActsAs and Email Validation

Cyberlot\'s Blog: Zend Framework take two (using gettext)

Symfony Blog: "State of Symfony 2" Conference Hubs


Community Events





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


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

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