News Feed
Sections




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

Sebastian Göttschkes' Blog:
Testclasses for symfony2
April 13, 2012 @ 11:57:53

Sebastian Göttschkes has a new post to his blog about a set of abstract base testing classes he's developed to help with the functional, unit and validation testing of his Symfony2-based applications.

So, when developing with symfony2, I rely on my tests. They are my safety net and without them, I get a little nervous after every change. Does everything work? Did I forget anything? So I developed some classes which I extend. They work on top of PHPUnit and the symfony2 WebTestCase. The classes are used by my different types of Tests: UnitTests, ValidationTests, FunctionalTests (as well as IntegrationTests).

Code for each type of testing base class is included in the post showing how he extends the based PHPUnit test case for unit testing and the Symfony WebTestCase for validation and functional testing. Each one of the classes are ready to use and give you some handy helper methods too.

0 comments voice your opinion now!
testing abstract class validation unittest functional


blog comments powered by Disqus

Similar Posts

Inviqa techPortal: My top ten favourite PhpSpec limitations

Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm

PHP 10.0 Blog: duck operator

Matthias Noback: A better PHP testing experience Part I: Moving away from assertion-centric testing

PHPBuilder.com: PHPUnit Fundamentals: Setting Up and Tearing Down a Doctrine 2 Database


Community Events





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


code introduction community laravel interview tips development framework list release conference deployment threedevsandamaybe language zendserver developer symfony series podcast api

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