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.
This lesson was published on October 22, 2013.