News Feed
Sections




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

Michelangelo van Dam's Blog:
Quality Assurance on PHP projects - PHPUnit part 1
August 17, 2011 @ 10:02:33

Michelangelo van Dam continues his "Quality Assurance in PHP projects" series in his latest post, the first of a few, about using PHPUnit to test your application.

Of all tools available for improving quality assurance, there's one tool that is the core tool you have to master: PHPUnit. PHPUnit is a complete testing framework crafted by Sebastian Bergmann (@s_bergmann), who ported existing xUnit frameworks to PHP. And with this testing framework you're able to test your functionality in an automated way before you push code into production.

Michelangelo walks you through the installation (via the PEAR installer), creating a phpunit.xml configuration file and making a basic bootstrapper to define some paths and environments. To make the tests a bit more relevant than just pseudo-test examples, he's created a set of tests based around a tic-tac-toe application in a test-driven design fashion (tests first, then code). In this first part he sets up some of his assertions in the tests, but you'll have to wait until part 2 for the code that will make them pass.

0 comments voice your opinion now!
quality assurance project phpunit unittest tutorial tdd


blog comments powered by Disqus

Similar Posts

Tibo Beijen's Blog: Using Zend_Form without Zend Framework MVC

Gonzalo Ayuso: Working with jQuery and Silex as RestFull Resource provider

Sebastian Bergmann's Blog: Integrating PHPUnit with Selenium

NetTuts.com: Quick Tip: Integrate Compass into an Existing CodeIgniter

Community News: Symfony Framework Makes Some Updates (v.0.6.2 and Content)


Community Events





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


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

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