/** * @param string $methodName * @return Method */ public function getMethod($methodName) { $method = new Method($this->piwikClient, $this->url, $methodName); $method->setDefaultParams($this->getDefaultParams()); return $method; }
private function when_method_is_called() { $method = new Method($this->client->reveal(), $this->url, $this->methodName); $method->setDefaultParams($this->defaultParams); $method->call($this->params); }