migrating phpunit to 3.8 to avoid bug with phpunit-mock-object