Updated for phpunit 4.0
Fixed test on new phpunit