示例#1
0
 public function testRun()
 {
     $app = $this->getApp();
     $action = new SearchPackage($app);
     $result = $action->execute(array('gawain/clippy'));
     $this->assertTrue(is_array($result));
 }
示例#2
0
 /**
  * Search for packages.
  *
  * @param $packages array Indexed array of package names to search
  *
  * @return array List of matching packages
  */
 public function searchPackage(array $packages)
 {
     if (!$this->search) {
         $this->search = new SearchPackage($this->app);
     }
     return $this->search->execute($packages);
 }