mock_objects.php
public function getCallCount($method)
    {
        $this->dieOnNoMethod($method, 'get call count');
        $method = strtolower($method);
        if (! isset($this->call_counts[$method])) {
            return 0;
        }

        return $this->call_counts[$method];
    }
public function getCallCount($method)
    {
        $this->dieOnNoMethod($method, 'get call count');
        $method = strtolower($method);
        if (! isset($this->call_counts[$method])) {
            return 0;
        }

        return $this->call_counts[$method];
    }
Fetches the call count of a method so far.

@param string $method        Method name called.

@return int              Number of calls so far.