title: OCMock - verifying order of method calls. Is there any other way?
body: <p>When I want to verify that in one method a mock object is receiving some messages in a particular order I do something like this:</p>
  
  <pre><code>// sut is an instance of the class I am testing and myMock is a mock object injected in sut.
  // I want to test that myMock sends messageA and then messageB, in that particular order.
  [[[myMock expect] andDo:^(NSInvocation *invocation)
    {
        [[myMock expect] messageB];
    }]
   messageA];
  
   [sut methodToTest];
  
   [myMock verify];
  </code></pre>
  
  <p>Is there any cleaner/better way of doing this?
  Thanks in advance.</p>