Skip to content

Instantly share code, notes, and snippets.

@timoschinkel
timoschinkel / prophecy_cheatsheet.md
Last active April 5, 2024 11:31
Prophecy cheatsheet

I typically find myself struggling when doing some more complex expectations using Prophecy. To make things easier for myself I decided to create this cheatsheet.

Type agnostic checks

Check for exact value

$ObjectProphecy->method(
    'value'
);