public function addStaticMethod($name, $callback = null)
{
if ($this->isFinalized) {
throw new FinalizedMockException();
}
if (!$callback) {
$callback = $this->emptyCallback;
}
$this->customStaticMethods[$name] = array($callback, $this->invocableInspector->callbackReflector($callback));
return $this;
}