Fixed compatibility with PHPUnit 4.1

Interface changed in https://github.com/sebastianbergmann/phpunit/commit/f0322b6978bc2b6fd9a17f499950a4b023ef3db4