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