code: 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);
      }
docs: Sets up an expected call with a set of expected parameters in that call.
  All calls will be compared to these expectations regardless of when the call is made.
  
  @param string $method        Method call to test.
  @param array $args           Expected parameters for the call including wildcards.
  @param string $message       Overridden message.