Mockery is a PHP extension that offers a superior mocking experience, particularly when compared to PHPUnit. While PHPUnit's mocking framework is powerful, Mockery offers a more natural language with a Hamcrest-like set of matchers. In this article, I'll compare the two mocking frameworks and highlight the best features of Mockery. Mockery offers a set of mocking-related matchers that are very sim
![Mockery: A Better Way | Envato Tuts+](https://cdn-ak-scissors.b.st-hatena.com/image/square/f3b18b3b98f2e0044f886f285c48540754cf0f38/height=288;version=1;width=512/https%3A%2F%2Fcdn.tutsplus.com%2Fnet%2Fuploads%2Flegacy%2F2157_mockery%2Fmockery.jpg)