예제 #1
0
 /**
  * Check parameters against the next expected set of parameters and get the associated response back.
  * @param mixed[] $parameters array of expected parameters and associated response
  * @return mixed
  */
 public function checkInvocation($parameters)
 {
     $expectedInvocation = array_shift($this->invocations);
     // the response is the last element of the array, pop it off
     $response = array_pop($expectedInvocation);
     $this->phpu->assertEquals($expectedInvocation, $parameters, "StrictReturnValueMap Error: Actual parameters do not match expected");
     return $response;
 }