Sync with https://github.com/phpspec/prophecy/issues/132#issuecomment-63326897