Example #1
0
 public function testGetAllPackages()
 {
     try {
         $this->_adapter->getAllPackages();
     } catch (Exception $e) {
         $this->markTestSkipped($e->getMessage());
     }
 }
Example #2
0
 /**
  * Show full list of installed packages
  *
  * @return $this
  * @see PearTest::testShowPearPackages()
  */
 public function showList()
 {
     try {
         $packages = $this->_pear->getAllPackages();
         $this->_log("Installed PEAR packages:");
         foreach ($packages as $package) {
             $this->_log($package->getRawInfo());
         }
     } catch (Exception $e) {
         $this->_failure("PEAR problem: {$e->getMessage()}");
     }
     return $this;
 }