title: PHPUnit assert no method is called
body: <p>I have a ClassA that uses a ServiceB. In a certain case, ClassA should end up not invoking any methods of ServiceB. I now want to test this and verity no methods are indeed called.</p>
  
  <p>This can be done as follows:</p>
  
  <pre><code>$classA-&gt;expects( $this-&gt;never() )-&gt;method( 'first_method' );
  $classA-&gt;expects( $this-&gt;never() )-&gt;method( 'second_method' );
  ...
  </code></pre>
  
  <p>Is there a way to simply state "no method should be called on this object" rather then having to specify a restriction for each method?</p>