getCoveragePath() 공개 메소드

public getCoveragePath ( ) : TheSeer\phpDox\FileInfo
리턴 TheSeer\phpDox\FileInfo
예제 #1
0
파일: PHPUnit.php 프로젝트: sakshika/ATM
 private function loadXML($fname)
 {
     try {
         $fname = $this->config->getCoveragePath() . '/' . $fname;
         if (!file_exists($fname)) {
             throw new EnricherException(sprintf('PHPLoc xml file "%s" not found.', $fname), EnricherException::LoadError);
         }
         $dom = new fDOMDocument();
         $dom->load($fname);
         $dom->registerNamespace('pu', 'http://schema.phpunit.de/coverage/1.0');
         return $dom;
     } catch (fDOMException $e) {
         throw new EnricherException('Parsing PHPLoc xml file failed: ' . $e->getMessage(), EnricherException::LoadError);
     }
 }
예제 #2
0
 /**
  * @param PHPUnitConfig $config
  *
  * @throws EnricherException
  */
 public function __construct(PHPUnitConfig $config)
 {
     $this->coveragePath = $config->getCoveragePath();
     $this->index = $this->loadXML('index.xml');
 }