/** * Sets the mock function. * * @param FunctionProvider $provider The mock function provider. * @return MockBuilder * @see setFunction() */ public function setFunctionProvider(FunctionProvider $provider) { return $this->setFunction($provider->getCallable()); }