Sync with https://github.com/sebastianbergmann/phpunit-mock-objects/commit/84b27568405dca29de30bc2cdf457e25f5bede7e