title: How can I test if same method is called with correct parameters with PHPUnit and mock object
body: <p>I am using PHPUnit for my unit tests I am using a mock object to test if a method is called with the correct parameters. This works fine when I just want to do this once. </p>
  
  <pre><code>    $logMock = $this-&gt;getMockBuilder('Logger')
              -&gt;disableOriginalConstructor()
              -&gt;getMock();
  
      //check if it updates the correct record
      $logMock-&gt;expects($this-&gt;exactly(1))
              -&gt;method('updateLog')
              -&gt;with(456, 'some status');
  </code></pre>
  
  <p>Now I have the situation that I want to test if the updateLog is called a second time (with different parameters). I don't see how I can do this with the 'with' method.</p>
  
  <p>Does anybody have a suggestion?</p>