title: How to return the argument of a mocked method?
body: <p>Hi all how can I make it so in PHPUnit a mocked method returns its passed argument?</p>
  
  <p>E.g:</p>
  
  <pre><code>$redirector-&gt;expects( $this-&gt;once() )-&gt;method('gotoUrl')-&gt;will( $this-&gt;returnValue($argument) );
  </code></pre>