Introduction to wsunit
This article was originally published at Planet PHP
on 4 May 2012.
Testing interactions with data providers via Http (e.g. webservices) is an essential thing to ensure the service has not changed it's dataformat or even worse is not reachable at all. In both cases you want to be the first to now and probably be able to fix this before your customer finds out. So you write integration tests and run then as a different job in youe continous integration environment. So far so good. But then you are as lazy as I am and hate doing work more than once. This is where WSUnit gets handy.