Skip to content

Mockery to Double - #376

Open
jasonmccreary wants to merge 1 commit into
pestphp:5.xfrom
jasonmccreary:mockery-to-double
Open

Mockery to Double#376
jasonmccreary wants to merge 1 commit into
pestphp:5.xfrom
jasonmccreary:mockery-to-double

Conversation

@jasonmccreary

Copy link
Copy Markdown

The rewrites the "Mocking" section of the Pest v5 documentation to recommend Double. Double is a modern PHP mocking library that put developer experience first, with:

  • A lower barrier to entry - no upfront terms like mock, spy, or partial.
  • Improved failure messages - that both humans and agents can read and understand.
  • Single, streamlined API - no aliases and no nuances.

While I appreciate Double is brand new, it has full feature parity with Mockery for all the fundamental features without any of the "gotchas". More importantly, I feel Double aligns well with Pest's ethos as both modern and developer focused. So it would be great to see it recommended by Pest.

If nothing else, hopefully the diff in this PR highlights Double's improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant