SimpleMock::returnsByValue PHP Метод

returnsByValue() публичный Метод

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