mock_objects.php
public function returns($method, $value, $args = false)
    {
        $this->dieOnNoMethod($method, 'set return');
        $this->actions->register($method, $args, new SimpleReturn($value));
    }
public function returns($method, $value, $args = false)
    {
        $this->dieOnNoMethod($method, 'set return');
        $this->actions->register($method, $args, new SimpleReturn($value));
    }
Sets a return for a parameter list that
will be passed on by all calls to this method that match.

@param string $method       Method name.
@param mixed $value         Result of call by value/handle.
@param array $args          List of parameters to match including wildcards.