Mocking a call with chained methods and arguments
Im learning how to use mockery in order to run some unit test and Im not sure what to do to mock my database class. It consists of separate methods that can be chained like these two examples: $db-&…