Added PHP Unit and re-wrote example accordingly