title: PHPUnit "with" matcher with array and $this->anything()
body: <p>I've got a unit test testing a <code>PDOStatement::execute()</code> call with <code>date()</code> as one of the array elements.</p>
  
  <p>Something like:</p>
  
  <pre><code>$stmt-&gt;execute(array ('value1', 'value2', date('Ymd'));
  </code></pre>
  
  <p>The issue is my assertion is using <code>$this-&gt;anything()</code> to represent that date function result.  I think it's breaking because it's in an array.  Is there a good way to handle this?</p>
  
  <p>My assertion looks like:</p>
  
  <pre><code>$mock-&gt;expects($this-&gt;once())
    -&gt;method('execute')
    -&gt;with(array ('value1', 'value2', $this-&gt;anything()));
  </code></pre>