Base test listener

Solves https://github.com/sebastianbergmann/phpunit/issues/814