Registers a new expectation in the mock object and returns the match object which can be infused with further details.
PHPUnit_Framework_MockObject_Matcher_Invocation $matcher:
PHPUnit_Framework_MockObject_Builder_InvocationMocker
public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher);