setPiwikVersion() public method

public setPiwikVersion ( $piwikVersion )
Exemplo n.º 1
0
 public function test_getMissingDependencies_setPiwikVersion()
 {
     $this->assertMissingDependency(array('piwik' => '>=9.2'), array($this->missingPiwik('>=9.2')));
     $this->dependency->setPiwikVersion('9.2');
     $this->assertMissingDependency(array('piwik' => '>=9.2'), array());
 }
Exemplo n.º 2
0
 public function getMissingDependencies($piwikVersion = null)
 {
     if (empty($this->pluginInformation['require'])) {
         return array();
     }
     $dependency = new Dependency();
     if (!is_null($piwikVersion)) {
         $dependency->setPiwikVersion($piwikVersion);
     }
     return $dependency->getMissingDependencies($this->pluginInformation['require']);
 }
Exemplo n.º 3
0
 /**
  * @param $piwikVersion
  * @return Dependency
  */
 private function makeDependency($piwikVersion)
 {
     $dependency = new Dependency();
     if (!is_null($piwikVersion)) {
         $dependency->setPiwikVersion($piwikVersion);
     }
     return $dependency;
 }