SimpleMock::expect PHP Method

expect() public method

All calls will be compared to these expectations regardless of when the call is made.
public expect ( string $method, array $args, string $message = '%s' )
$method string Method call to test.
$args array Expected parameters for the call including wildcards.
$message string Overridden message.
    public function expect($method, $args, $message = '%s')
    {
        $this->dieOnNoMethod($method, 'set expected arguments');
        $this->checkArgumentsIsArray($args, 'set expected arguments');
        $this->expectations->expectArguments($method, $args, $message);
        $args = $this->replaceWildcards($args);
        $message .= Mock::getExpectationLine();
        $this->expected_args[strtolower($method)] = new ParametersExpectation($args, $message);
    }