/** * Tests exercise specifications. * * @param InputInterface $input * @param SpecificationIterator[] $specifications * * @return TestResult */ private function testSpecifications(InputInterface $input, array $specifications) { $skip = $input->getOption('dry-run') || $this->skip; $setup = $this->exercise->setUp($specifications, $skip); $skip = !$setup->isSuccessful() || $skip; $testResult = $this->exercise->test($specifications, $skip); $teardown = $this->exercise->tearDown($specifications, $skip, $testResult); $result = new IntegerTestResult($testResult->getResultCode()); return new TestWithSetupResult($setup, $result, $teardown); }
/** * {@inheritdoc} */ public function test(array $iterators, $skip = false) { return $this->baseExercise->test($iterators, $skip); }
/** * Tests suites specifications. * * @param SpecificationIterator[] $iterators * @param Boolean $skip * * @return TestResult */ public function test(array $iterators, $skip) { return $this->decoratedExercise->test($this->order($iterators), $skip); }