Jani Hartikainen's Blog: How to make your code testable

Courtesy PHPDeveloper.org  Mon, 08/17/2009 - 06:52

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 designed with test-driven development methodologies, or with unit testing in mind.

As I implemented unit-tests to this code, there were some modifications I had to do on the code. Some modifications popped up more than others.

There were a few things that are more...


 

More related items

A Test-Driven Development Stack for Java: Maven,...
Gamelan: "Afterwards, the project manager gathered all the other developers in a separate room and told them flat out: "We do not have time to write unit tests, so just disregard everything...

Jani Hartikainen's Blog: Unit testing 5: test-driven...
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...

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