Support PHPUnit 3.5 and drop compatibility with PHPUnit 3.4, closes #1234