Back to Vol 17, Issue 5

PHP Architect · Vol 17, Issue 5 · May 2018

Easier Mocking with Mockery, Part 2

by Robert Basic

In part one, we laid the practical groundwork for using test doubles. Let's explore the parts of Mockery that, in some cases, exit the realm of everyday usage and see how it can help us in dealing with scenarios we might have thought impossible to test like static method calls, spying on objects, and more.

The full article is in PHP Architect Vol 17, Issue 5. Subscribe to read it and every new issue.

Subscribe
Robert Basic

About the author

Robert Basic

Robert is a software engineer and PHP consultant. He doesn't shy away from maintaining legacy applications and writing documentation, fixing bugs with the help of tests and believes communication with business stakeholders is the way to develop software. Loves contributing to open source, and is a core contributor to Mockery, a PHP mock object framework for use in unit testing. Author of pugdebug, a standalone debugging client for PHP that uses XDebug as the debugging engine.

Our Partners

Collaborating with industry leaders to bring you the best PHP resources and expertise

Interested in partnering? Get in touch →