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