예제 #1
0
 /**
  * Loads SM manifest
  *
  * @param  Path $path Path object
  * @return void
  */
 public function load(Path $path)
 {
     $fileName = $path->getFull() . '/manifest.xml';
     $xml = new \DOMDocument();
     // return if manifest can't be loaded
     if (!file_exists($fileName) || !$xml->load($fileName)) {
         return;
     }
     $this->_path = $path;
     if (!$this->isValidForPath($xml, $path)) {
         return;
     }
     $this->_config = $this->_addDefaultProcessors($xml);
 }
예제 #2
0
 /**
  * @covers ::getFull
  * @covers ::_processPath
  */
 public function test_getFull_should_return_proper_value()
 {
     $paramPath = 'configuration/eset/path/';
     $path = new Path($paramPath, '/base/absolute', 'rootdir');
     $this->assertEquals('/base/absolute/configuration/eset', $path->getFull());
 }