Sync with https://github.com/sebastianbergmann/phpunit-mock-objects/commit/1ff75202cbce1e0b6812a39564d0456a7bb3e028