This post describes how to set up automated testing with Zend Test and PHPUnit. The latter is a unit testing package
for PHP applications done in PHP. I had searched for posts on how to
do this but there weren't any easy-to-understand or straightforward
examples to follow, so I decided to write one myself. This post will thus be written
in a way that newbies are able to get a test working straight away
by following the examples in this article. After reviewing
the length of the post, I decided to break this article into several
smaller ones that are much easier to digest. It'll be easier for you
to get to specific information with smaller articles rather than a
large one as well.
I hope this post will help some newbie down the road. Bear in mind
that I'm no expert on this - only enough to get it working (and
maybe to screw up, which I hope doesn't happen.) So if I make any
mistakes, please point them out and I will make amendments where
necessary. If you have something to ask or simply want to share,
please comment at the end of the post. Hope you find the following
useful!