Prophecy

Highly opinionated mocking framework for PHP 5.3+ (by phpspec)

Prophecy Alternatives

Similar projects and alternatives to Prophecy

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Prophecy alternative or higher similarity.

Prophecy reviews and mentions

Posts with mentions or reviews of Prophecy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-03-18.
  • Test doubles
    3 projects | dev.to | 18 Mar 2021
    Prophecy is a framework for creating test doubles that was initially built for the requirements of phpspec, but it can be used with any other PHP testing framework. Since PHPUnit 4.5 it bundles Prophecy within PHPUnit itself, but as of PHPUnit 9.x this bundling is deprecated and set to be removed in PHPUnit 10.
  • Testing with immutable PSR-7 objects and Prophecy
    3 projects | dev.to | 4 Mar 2021
    Recently I have been working a lot with PSR-15 and PSR-18 and one of the characteristics of these recommendations is that it uses the immutable objects specified in PSR-7. Soon after we introduced PSR-18 in our codebase a colleague implemented a client including a unit test that was passing. And yet the code was failing when run in the browser. The cause of this was that the fact that RequestInterface objects are immutable by specification was overlooked. Due to the use of Prophecy and prophesized objects we were struggling to properly test it. Until another colleague introduced me to Argument::that() that is.

Stats

Basic Prophecy repo stats
2
8,530
6.5
20 days ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com