Hey, big fan of Mockolate, thanks for your hard work!
Question on expect:
I want to ensure a method on a mock was called with particular data:
Let's say the signature of myMock.myMethod() takes an Array, and I want to ensure that that Array contains ['someString', {foo:'bar'}]. My problem in asserting is that this Array is written somewhere else, so I can't do:
expect(myMock.myMethod(['someString', {foo:'bar'}])).once();
...because although the 'someString' will pass, the actual {foo:'bar'} associative array that will be in the resulting Array passed to myMock.myMethod() is assembled somewhere else, so effectively it's a different object in memory, etc. So, is there a softer way of doing so?
Thanks for your time!
adq