コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function execute(InputInterface $input, OutputInterface $output)
 {
     if (!$input->getOption('init')) {
         return null;
     }
     $suites = $this->repository->getSuites();
     $this->bootstrapper->bootstrapSuites($suites);
     $output->write(PHP_EOL);
     return 0;
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function execute(InputInterface $input, OutputInterface $output)
 {
     if (null === ($argument = $input->getOption('definitions'))) {
         return null;
     }
     $printer = $this->getDefinitionPrinter($argument);
     foreach ($this->suiteRepository->getSuites() as $suite) {
         $this->writer->printSuiteDefinitions($printer, $suite);
     }
     return 0;
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 private function getFeatureFiles()
 {
     $featureFiles = array();
     foreach ($this->registry->getSuites() as $suite) {
         foreach ($this->locator->locateSpecifications($suite, '') as $feature) {
             $featureFiles[] = $feature->getFile();
         }
     }
     return $featureFiles;
 }
コード例 #4
0
 /**
  * Finds specification iterators for all provided suites using locator.
  *
  * @param null|string $locator
  *
  * @return SpecificationIterator[]
  */
 private function findSuitesSpecifications($locator)
 {
     return $this->specificationFinder->findSuitesSpecifications($this->suiteRepository->getSuites(), $locator);
 }
コード例 #5
0
 /**
  * Returns all currently available suites.
  *
  * @return Suite[]
  */
 private function getAvailableSuites()
 {
     return $this->suiteRepository->getSuites();
 }