talira

Compare

PhakeMockeryProphecy
What it isA PHP mocking framework that verifies calls after the fact, like Mockito.Mock object framework for PHP unit testsOpinionated, flexible object mocking framework for PHP
KindOpen sourceOpen sourceOpen source
Trust0.330.530.43
Stars478107218457
Last commit2026-02-092026-10-172026-04-13
LicencePhake BSD 3-clause licenceBSD-3-ClauseMIT
PricingFreeFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyMike LivelyMockeryphpspec
Features
  • mock objects, test doubles and method stubs
  • verify calls after running the code (Mockito-style)
  • mocking static methods
  • parameter matchers and answers
  • mocks of classes and interfaces
  • expectation DSL for calls, arguments and return values
  • spies and partial mocks
  • PHPUnit integration helpers
  • works with any test framework
  • dummies, stubs, mocks and spies from one prophecy API
  • promises and argument wildcards on method prophecies
  • predictions checked at the end of a test
  • PHPUnit integration through prophecy-phpunit