Updated for phpunit 4.0
Fixed test on new phpunit
Merge pull request #3818 from GrahamCampbell/4.1-phpunit

[4.1] PHPUnit 4.0