PackageTrack
Sign in Get early access

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 2026
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 11
  1. v2.5.0 09 Feb 2026
    Release notes

    What's Changed

    Full Changelog: v2.4.0...v2.5.0

    Open source →
    Release notes
    • Add support for PHPUnit 13
    • Add a CI job running on PHP 8.5
    Open source →
  2. v2.4.0 13 May 2025
    Release notes

    What's Changed

    Full Changelog: v2.3.0...v2.4.0

    Open source →
    Release notes
    • Add support for PHPUnit 12
    Open source →
  3. v2.3.0 19 Nov 2024
    Release notes
    • Add more precise type for the prophesize method
    Open source →
    Release notes
    • Add more precise type for the prophesize method
    Open source →
  4. v2.2.0 01 Mar 2024
    Release notes

    What's Changed

    Full Changelog: v2.1.0...v2.2.0

    Open source →
    Release notes
    • Add support for PHPUnit 11
    Open source →
  5. v2.1.0 08 Dec 2023
    Release notes
    • Add support for PHPUnit 10.1+ (10.0 is not supported)
    • Bump requirement to Prophecy 1.18+
    Open source →
  6. v2.0.2 18 Apr 2023
    Release notes

    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

    Open source →
  7. v2.0.1 09 Jul 2020

    Nothing published for this version

  8. v2.0.0 07 Apr 2020
    Release notes

    Rewrite of the library for PHPUnit 9.1+, with a new API based on a trait rather than a base class.

    Open source →
  9. v1.1.0 09 Feb 2015
    Release notes
    • Remove the requirement to call the parent setUp method
    • 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 prophesize API so the migration is a matter of changing the parent class)

    Open source →
  10. v1.0.1 03 Mar 2014

    Nothing published for this version

  11. v1.0.0 04 Jul 2013

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive