Ejemplo n.º 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;
 }
 /**
  * {@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;
 }
Ejemplo n.º 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;
 }
 /**
  * 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);
 }
Ejemplo n.º 5
0
 /**
  * Returns all currently available suites.
  *
  * @return Suite[]
  */
 private function getAvailableSuites()
 {
     return $this->suiteRepository->getSuites();
 }