[2.2] Use stricter version constraints

Ref https://github.com/sebastianbergmann/phpunit/pull/1419.