phpspec/prophecy-phpunit
Integrating the Prophecy mocking library in PHPUnit test cases
v2.5.0
62M downloads/mo
#544 most downloaded on Packagist
phpspec/prophecy-phpunit
What this package is like to depend on
Last release 6 months ago
09 Feb 2026
Release timing varies
gaps range from 3 months to 5.2 years
Most releases are documented
notes for 8 of 11 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
11 releases · first in 2013
1 release in the last 12 months
see the full history below
Release timeline
11 releases · Jul 2013 to Feb 2026Releases
latest 11-
v2.5.009 Feb 2026 -
v2.4.013 May 2025Release notes
Open source → -
v2.3.019 Nov 2024 -
v2.2.001 Mar 2024Release notes
Open source → -
v2.1.008 Dec 2023Release notes
Open source →- Add support for PHPUnit 10.1+ (10.0 is not supported)
- Bump requirement to Prophecy 1.18+
-
v2.0.218 Apr 2023Release notes
Open source →What's Changed
- Fix a PSALM annotation by @dunglas in #26
- Add @not-deprecated annotation to avoid PHPStan errors by @func0der in #52
Full Changelog: v2.0.1...v2.0.2
-
v2.0.109 Jul 2020Nothing published for this version
-
v2.0.007 Apr 2020Release notes
Open source →Rewrite of the library for PHPUnit 9.1+, with a new API based on a trait rather than a base class.
-
v1.1.009 Feb 2015Release notes
Open source →- Remove the requirement to call the parent
setUpmethod - Add the assertion count for predictions to be compatible with PHPUnit strict mode
Note that this integration in the ProphecyTestCase is not necessary anymore for PHPUnit 4.5 as it provides support for prophecy natively (using the same
prophesizeAPI so the migration is a matter of changing the parent class) - Remove the requirement to call the parent
-
v1.0.103 Mar 2014Nothing published for this version
-
v1.0.004 Jul 2013Nothing published for this version