コード例 #1
0
ファイル: XmlPublisherTest.php プロジェクト: mhujer/steward
 /**
  * Create empty.xml file and sets is as Publisher file
  * @return string File name
  */
 protected function createEmptyFile()
 {
     // create empty file
     $fileName = self::getFilePath('empty.xml');
     if (file_exists($fileName)) {
         unlink($fileName);
     }
     touch($fileName);
     $this->publisher->setFileName(basename($fileName));
     return $fileName;
 }
コード例 #2
0
ファイル: RunTestsCommand.php プロジェクト: jirinovak/steward
 /**
  * @codeCoverageIgnore
  * @param InputInterface $input
  * @param OutputInterface $output
  * @return ProcessSetCreator
  */
 protected function getProcessSetCreator(InputInterface $input, OutputInterface $output)
 {
     if (!$this->processSetCreator) {
         $xmlPublisher = new XmlPublisher($input->getArgument(self::ARGUMENT_ENVIRONMENT), null, null);
         $xmlPublisher->setFileDir($input->getOption(self::OPTION_LOGS_DIR));
         $xmlPublisher->clean();
         $this->processSetCreator = new ProcessSetCreator($this, $input, $output, $xmlPublisher);
     }
     return $this->processSetCreator;
 }