padraic/mockery — pull request #337 by fhinkel (2014-05-27 20:08:49+00:00)
Title: Check if a demeter chain has already been established, then set up the expectation 

Check if a demeter chain has been established by regex-matching the keys of the existing mocks against the name of the method to be mocked.
Expectation and CompositeExpectation implement ExpectationInterface, which I needed for type hinting.