/** * Checks if the function or method was called with the specified * arguments a number of times. * * @param array $args * @param int $times * * @return void */ public function wasCalledWithTimes(array $args, $times) { /** @noinspection PhpUndefinedMethodInspection */ $callTimes = $this->__callLogger->getCallTimes($args); $functionName = $this->__getFunctionName(); $this->matchCallWithTimes($args, $times, $functionName, $callTimes); }