SimpleMock::returns PHP Method

returns() public method

Sets a return for a parameter list that will be passed on by all calls to this method that match.
public returns ( string $method, mixed $value, array $args = false )
$method string Method name.
$value mixed Result of call by value/handle.
$args array List of parameters to match including wildcards.
    public function returns($method, $value, $args = false)
    {
        $this->dieOnNoMethod($method, 'set return');
        $this->actions->register($method, $args, new SimpleReturn($value));
    }