Fix tests with PHPUnit 4.0