protected function recordMethodInvocation($methodName)
    {
        if ($this->in_static_mode) {
            $this->expectedStaticMethodCalls[] = $methodName;
        } else {
            $this->expectedInstanceMethodCalls[] = $methodName;
        }
    }