예제 #1
0
 /**
  * Runs a specific processor (preprocessor/postprocessor)
  *
  * @param  string $processorType Processor name
  * @return void
  */
 protected function _runProcessors($processorType = Processor::PRE_PROCESSORS)
 {
     $processors = $this->_manifest->getProcessors($processorType);
     foreach ($processors as $processor) {
         $directory = $this->_baseDirectory . DS . (string) $processor;
         // Process directory
         $this->_processDirectory($directory);
     }
 }
예제 #2
0
 /**
  * @test
  * @covers ::isValidForPath
  */
 public function isValidForPath_should_return_true_when_allowed_groups_contains_current_group()
 {
     $manifest = new Manifest();
     $manifest->load($this->_getPath());
     $xml = new \DOMDocument();
     $xml->loadXML('<config><allowed_groups><group>prep</group></allowed_groups></config>');
     $result = $manifest->isValidForPath($xml, $this->_getPath());
     $this->assertTrue($result);
 }