Example #1
0
 /**
  * {@inheritdoc}
  */
 public function execute(InputInterface $input, OutputInterface $output)
 {
     if (!$this->strict && !$input->getOption('strict')) {
         return;
     }
     $this->resultInterpreter->registerResultInterpretation(new StrictInterpretation());
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function execute(InputInterface $input, OutputInterface $output)
 {
     $specs = $this->findSpecifications($input);
     $result = $this->testSpecifications($input, $specs);
     if ($input->getArgument('paths') && TestResults::NO_TESTS === $result->getResultCode()) {
         throw new WrongPathsException(sprintf('No specifications found at path(s) `%s`.', $input->getArgument('paths')), $input->getArgument('paths'));
     }
     return $this->resultInterpreter->interpretResult($result);
 }