News Feed
Sections




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

SitePoint PHP Blog:
Functional Testing in Symfony2
March 04, 2014 @ 11:16:45

Taylor Ren has written up a new tutorial for the SitePoint PHP blog today walking you through a method for functional testing a Symfony application with the help of Symfony's own "WebTestCase" functionality.

In my previous article, we demonstrated how to load sample data into our Symfony development environment. The test data may not be useful as it stands on its own. When coupled with Functional Testing, however, it becomes a life saver. [...] Functional Testing is different. We don't look at the "correctness" of a single function, which should be verified by a Unit Test, but look at the bigger picture. The question answered by Functional Testing is: Is our app performing well in the sense that it displays the right content, corresponds to a user's interaction, etc?

He shows how to create a simple WebTestCase-based test to fetch the main page of a site, locate a few pieces of information and click on a certain link. Once this test passes, he adds a bit more to the test, checking the data in the page following the click.

0 comments voice your opinion now!
symfony2 functional testing tutorial webtestcase

Link: http://www.sitepoint.com/functional-testing-symfony2/

blog comments powered by Disqus

Similar Posts

PHPFreaks.com: Protecting php applications with PHPIDS

Dave Marshall's Blog: Defending against Cache Stampedes

Dan Scott's Blog: Creating a MARC record from scratch in PHP using File_MARC

Oracle Technology Network: DeployPHP Series, Part 5 - Zend Core for Oracle Quick Start

Fabien Potencier: Packing a Symfony full-stack Framework Application in one File - Introduction


Community Events





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


series bugfix opinion conference language zendserver introduction podcast developer community tips framework api library interview list laravel deployment symfony release

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