SimpleMock::returnsAt PHP Méthode

returnsAt() public méthode

Sets a return for a parameter list that will be passed only when the required call count is reached.
public returnsAt ( 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.
$args array List of parameters to match including wildcards.
    public function returnsAt($timing, $method, $value, $args = false)
    {
        $this->dieOnNoMethod($method, 'set return value sequence');
        $this->actions->registerAt($timing, $method, $args, new SimpleReturn($value));
    }