Published On Oct. 22nd 2013
• Run Time 13:24
When unit testing, you'll frequently encounter situations when you want to mock a particular class' dependencies. That way, we can test in complete isolation. However, though PHPUnit offers mocking out of the box, the syntax is a bit ugly. Instead, the industry standard in the PHP community is a tool, called Mockery.