SimpleMock::returnsByValueAt PHP Méthode

returnsByValueAt() public méthode

Sets a return for a parameter list that will be passed by value only when the required call count is reached.
public returnsByValueAt ( integer $timing, string $method, mixed $value, array $args = false )
$timing integer Number of calls in the future to which the result applies. If not set then all calls will return the value.
$method string Method name.
$value mixed Result of call passed by value.
$args array List of parameters to match including wildcards.
    public function returnsByValueAt($timing, $method, $value, $args = false)
    {
        $this->dieOnNoMethod($method, 'set return value sequence');
        $this->actions->registerAt($timing, $method, $args, new SimpleByValue($value));
    }