Blog

What about method-level `passthru`?

Mockery lets one stubbed expectation run the real method. Double doesn't, and the reason isn't a missing feature — it's what that need is usually actually asking for.

Why doesn't Double mock magic methods?

__call() has no fixed shape to check a stub against. Two real examples show what to double instead — and one case where the answer isn't Double at all.

Why is it called "Double"?

"Double" borrows its name from "test double," the generic term for any stand-in used in place of a real dependency in a test.

A PHP Mockery alternative

Double is a PHP test double library and Mockery alternative that keeps the syntax you know while improving your developer experience.