public function getCalls($double, $method)
{
FBMock_Utils::assertString($method);
$this->assertMethodExists($double, $method);
if ($this->isStrictMock) {
FBMock_Utils::enforce($this->getStub($method), "Trying to fetch calls for unmocked method %s on strict mock of %s", $method, $this->className);
}
if (isset($this->methodsToCalls[strtolower($method)])) {
return $this->methodsToCalls[strtolower($method)];
}
return array();
}