SimpleMock::expectAt PHP Méthode

expectAt() public méthode

The expected call count will be adjusted if it is set too low to reach this call.
public expectAt ( integer $timing, string $method, array $args, string $message = '%s' )
$timing integer Number of calls in the future at which to test. Next call is 0.
$method string Method call to test.
$args array Expected parameters for the call including wildcards.
$message string Overridden message.
    public function expectAt($timing, $method, $args, $message = '%s')
    {
        $this->dieOnNoMethod($method, 'set expected arguments at time');
        $this->checkArgumentsIsArray($args, 'set expected arguments at time');
        $args = $this->replaceWildcards($args);
        if (!isset($this->expected_args_at[$timing])) {
            $this->expected_args_at[$timing] = array();
        }
        $method = strtolower($method);
        $message .= Mock::getExpectationLine();
        $this->expected_args_at[$timing][$method] = new ParametersExpectation($args, $message);
    }