Prophecy
PHP object mocking framework that builds test doubles from predictions of how an object will behave, usable with any PHP testing framework.
Prophecy is a PHP object mocking framework. It builds test doubles from predictions of how an object will behave. It was first written to serve phpspec2, and its README says it can be used inside any PHP testing framework. The README shows it under the development dependencies of a project.
Worth knowing
The README FAQ says Prophecy does not support calling the original methods on a prophesized class.
Identity
Rendering and deploy
- Install with
- composer2
Releases
Adoption
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/phpspec/prophecy - 2026-11-16: links, Categories, Install with
github.com/phpspec/prophecy/blob/master/README.md - 2026-11-16: Maintainer
github.com/phpspec/prophecy/blob/master/LICENSE - 2026-11-16: First release
api.github.com/repos/phpspec/prophecy/tags - 2026-11-16: Runtime, Minimum runtime, License, License model
github.com/phpspec/prophecy/blob/v1.26.1/composer.json - 2026-11-16: Current major version
api.github.com/repos/phpspec/prophecy/releases/tags/v1.26.0 - 2026-11-16: Last release
repo.packagist.org/p2/phpspec/prophecy.json - 2026-11-16: Packagist downloads
packagist.org/packages/phpspec/prophecy.json - 2026-11-16: Contributors
api.github.com/repos/phpspec/prophecy/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/phpspec%2Fprophecy