PHPackages                             sunveloper/phpspec-prophecy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. sunveloper/phpspec-prophecy

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sunveloper/phpspec-prophecy
===========================

Highly opinionated mocking framework for PHP 5.3+

1.12.2(5y ago)041MITPHPPHP ^7.2 || ~8.0, &lt;8.1

Since Oct 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sunveloper/phpspec-prophecy)[ Packagist](https://packagist.org/packages/sunveloper/phpspec-prophecy)[ Docs](https://github.com/phpspec/prophecy)[ RSS](/packages/sunveloper-phpspec-prophecy/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (6)Versions (3)Used By (1)

Prophecy
========

[](#prophecy)

[![Stable release](https://camo.githubusercontent.com/69fd19a7d525400e67de83acb39a98c01fbb4a17f11d04406453e8673df32294/68747470733a2f2f706f7365722e707567782e6f72672f706870737065632f70726f70686563792f76657273696f6e2e737667)](https://packagist.org/packages/phpspec/prophecy)[![Build Status](https://camo.githubusercontent.com/db6fcbff716bba014458ccf27d1db013a7d87664029aa31d5c3aae94bed53296/68747470733a2f2f7472617669732d63692e6f72672f706870737065632f70726f70686563792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phpspec/prophecy)

Prophecy is a highly opinionated yet very powerful and flexible PHP object mocking framework. Though initially it was created to fulfil phpspec2 needs, it is flexible enough to be used inside any testing framework out there with minimal effort.

A simple example
----------------

[](#a-simple-example)

```
