phpunit 4.x, phpcov 2.x (see #6029)

This is a rebased/cleaned version of #6029 targeted at 2.4