public function verifyNeverInvoked($name, $params = null)
    {
        $calls = $this->getCallsForMethod($name);
        $separator = $this->callSyntax($name);

        if (is_array($params)) {
            if (empty($calls)) {
                return;
            }

            foreach ($calls as $args) {
                if ($this->onlyExpectedArguments($params, $args) === $params) {
                    throw new fail(sprintf($this->neverInvoked, $this->className));
                }
            }
            return;
        }
        if (count($calls)) {
            throw new fail(sprintf($this->neverInvoked, $this->className.$separator.$name));
        }
    }