Example #1
0
 public function testGetPackageRawInfo()
 {
     try {
         $package = $this->_adapter->getPackage('PEAR');
         $package->getRawInfo();
     } catch (Exception $e) {
         $this->markTestSkipped($e->getMessage());
     }
 }
Example #2
0
 /**
  * Check whether PEAR package exists
  *
  * @param string Package name to check
  * @return $this
  * @see PearTest::testPearPackages()
  */
 public function package($name)
 {
     try {
         $this->_package = $this->_pear->getPackage($name);
         if (is_null($this->_package)) {
             $this->_failure("PEAR '{$name}' package does NOT exist");
         } else {
             $this->_success("PEAR '{$name}' package exists, ver.{$this->_package->getVersion()}");
         }
     } catch (Exception $e) {
         $this->_failure("PEAR problem: {$e->getMessage()}");
     }
     return $this;
 }