removeDefaultArguments() public static method

Removes optional arguments.
public static removeDefaultArguments ( array &$arguments )
$arguments array The arguments.
 /**
  * @SuppressWarnings(PHPMD)
  */
 public function reveal($value)
 {
     if (is_array($value)) {
         MockFunctionGenerator::removeDefaultArguments($value);
         foreach ($value as &$item) {
             $item = $this->revealer->reveal($item);
         }
         return $value;
     } else {
         return $this->revealer->reveal($value);
     }
 }
 /**
  * @SuppressWarnings(PHPMD)
  */
 public function matches(\PHPUnit_Framework_MockObject_Invocation $invocation)
 {
     MockFunctionGenerator::removeDefaultArguments($invocation->parameters);
     return false;
 }