Create your own framework... on top of the Symfony2 Components (...

Courtesy Planet PHP  Tue, 01/17/2012 - 03:39

Some watchful readers pointed out some subtle but nonetheless important bugs in the framework we have built yesterday.

When creating a framework, you must be sure that it behaves as advertised. If not, all the applications based on it will exhibit the same bugs.

The good news is that whenever you fix a bug, you are fixing a bunch of applications too.

Today's mission is to write unit tests for the framework we have created by using PHPUnit ...


 

More related items

Marco Tabini's Blog: The easiest way to add unit test...
In a new post to his blog Marco Tabini offers some suggestions on unit testing - not really a tutorial on how to it, more of an "easy way in" to introducing it to your development process. ...

Monkey patching in PHP - till
I haven't really had the chance or time to play with PHP 5.3 until recently when Ubuntu 10.04 upgraded my local installations and kind of forced me to dive into it a little. And I'm also...

Jani Hartikainen's Blog: Unit testing: Introduction
If you've been hearing more and more about unit testing your applications but aren't sure where to start, you might want to check out this post from Jani Hartikainen. It's the first in a...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com