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

@param string $method       Method name.
@param mixed $value         Result of call passed by value.
@param array $args          List of parameters to match including wildcards.
Sets a return for a parameter list that will be passed by value for all calls to this method .