Jani Hartikainen's Blog: Unit testing 5: test-driven development

Courtesy PHPDeveloper.org  Mon, 07/06/2009 - 21:06

Jani Hartikainen has posted part five of his look at unit testing in PHP (with PHPUnit) focusing on test-driven development.

The difference between "normal" and test-driven development (TDD) is that when doing TDD, you write unit tests for your new code before writing the code itself.

This way you ensure good test coverage for your code, and your code will also be more flexible and reusable, as you have to design the class interfaces for easy testing....


 

More related items

Keeping score in test-driven development with Python,...
Free Software Magazine: "Programming is more fun when you keep score. The extreme programming (XP) development model popularized the idea of test-driven development (TDD) with professional...

Avnet Labs Blog: TDD with Zend Framework
On the Avnet Labs blog today Ekerete has kicked off a new series looking specifically at using test-driven design to create Zend Framework-based applications: However, as useful as the...

Jani Hartikainen's Blog: How to make your code...
Jani Hartikainen has posted a few suggestions on how you can structure your code to make (unit) testing it easier in the long run. I've recently been working on a code-base which wasn't...

Logitech 961400-0403 Quickcam for Notebooks Deluxe
When you rely on your notebook PC to communicate with business partners and family, it's critical to use high quality, reliable accessories. You want a hassle-free experience... but you've...

Hewlett-Packard 30-Inch Lcd Monitor (EZ320A8#ABA)
Stop your co-workers in their tracks with the stunning new 30-inch diagonal HP LP3065 Flat Panel Monitor. This flagship monitor features best-in-class performance and presentation features on...


 

Post new comment

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