Make test compatible with phpunit4.0