[WIP] Upgrade to PHPUnit 4

This PR is mainly for two reasons:

* As part of #5678 due the support of HHVM
* To be up to date with the improvements in the test framework.

To fix:

- [ ] Blacklist temporal files from coverage (https://github.com/sebastianbergmann/phpunit/issues/1205)