NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #596 most downloaded on Packagist
Integrating the Prophecy mocking library in PHPUnit test cases
Latest stable
v2.5.0
Last release 9 months ago
09 Feb 2026
Release timing varies
gaps range from 3 months to 5.2 years
Most releases are documented
notes for 9 of 11 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
11 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
Allow PHPUnit 13 by @Jean85 in https://github.com/phpspec/prophecy-phpunit/pull/70
Full Changelog: https://github.com/phpspec/prophecy-phpunit/compare/v2.4.0...v2.5.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Allow PHPUnit 12 by @Jean85 in https://github.com/phpspec/prophecy-phpunit/pull/67
Full Changelog: https://github.com/phpspec/prophecy-phpunit/compare/v2.3.0...v2.4.0
Add more precise type for the prophesize method
prophesize methodAllow PHPUnit 11 by @Jean85 in https://github.com/phpspec/prophecy-phpunit/pull/59
Full Changelog: https://github.com/phpspec/prophecy-phpunit/compare/v2.1.0...v2.2.0
Add support for PHPUnit 10.1+ (10.0 is not supported)
Add @not-deprecated annotation to avoid PHPStan errors by @func0der in https://github.com/phpspec/prophecy-phpunit/pull/52
Full Changelog: https://github.com/phpspec/prophecy-phpunit/compare/v2.0.1...v2.0.2
Full Changelog: v2.0.1...v2.0.2
Nothing published for this version
Rewrite of the library for PHPUnit 9.1+, with a new API based on a trait rather than a base class.
Rewrite of the library for PHPUnit 9.1+, with a new API based on a trait rather than a base class.
Remove the requirement to call the parent setUp method
setUp methodNote that this integration in the ProphecyTestCase is not necessary anymore for PHPUnit 4.5 as it provides support for prophecy natively (using the same prophesize API so the migration is a matter of changing the parent class)
Marked the ProphecyTestCase as abstract to avoid PhpUnit to try running it as a testcase
Marked the ProphecyTestCase as abstract to avoid PhpUnit to try running it as a testcase
Nothing published for this version
One column per quarter.