talira

Compare

ProphecyMockeryPhake
What it isOpinionated, flexible object mocking framework for PHPMock object framework for PHP unit testsA PHP mocking framework that verifies calls after the fact, like Mockito.
KindOpen sourceOpen sourceOpen source
Trust0.430.530.33
Stars845710721478
Last commit2026-04-132026-10-172026-02-09
LicenceMITBSD-3-ClausePhake BSD 3-clause licence
PricingFree and open sourceFree and open sourceFree
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyphpspecMockeryMike Lively
Features
  • 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
  • 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
  • mock objects, test doubles and method stubs
  • verify calls after running the code (Mockito-style)
  • mocking static methods
  • parameter matchers and answers