title: PHPUnit stubbing: default return value from map
body: <p>I have read in the PHPUnit Manual that with the following example, the method call <code>doSomething('a','b','c')</code> will return <code>d</code> and the method call <code>doSomething('e','f','g')</code> will return <code>h</code>.</p>
  
  <pre><code>&lt;?php
  require_once 'SomeClass.php';
  
  class StubTest extends PHPUnit_Framework_TestCase
  {
      public function testReturnValueMapStub()
      {
          // Create a stub for the SomeClass class.
          $stub = $this-&gt;getMockBuilder('SomeClass')
                       -&gt;getMock();
  
          // Create a map of arguments to return values.
          $map = array(
            array('a', 'b', 'c', 'd'),
            array('e', 'f', 'g', 'h')
          );
  
          // Configure the stub.
          $stub-&gt;method('doSomething')
               -&gt;will($this-&gt;returnValueMap($map));
  
          // $stub-&gt;doSomething() returns different values depending on
          // the provided arguments.
          $this-&gt;assertEquals('d', $stub-&gt;doSomething('a', 'b', 'c'));
          $this-&gt;assertEquals('h', $stub-&gt;doSomething('e', 'f', 'g'));
      } 
  }
  ?&gt;
  </code></pre>
  
  <p>Is there also a way to define such a return value map, but with a default return value when the particular input arguments do not have a specific return value?</p>