/** * {@inheritdoc} */ public function test(Environment $env, SpecificationIterator $iterator, $skip = false) { $results = array(); foreach ($iterator as $specification) { $setup = $this->specTester->setUp($env, $specification, $skip); $localSkip = !$setup->isSuccessful() || $skip; $testResult = $this->specTester->test($env, $specification, $localSkip); $teardown = $this->specTester->tearDown($env, $specification, $localSkip, $testResult); $integerResult = new IntegerTestResult($testResult->getResultCode()); $results[] = new TestWithSetupResult($setup, $integerResult, $teardown); } return new TestResults($results); }
/** * {@inheritdoc} */ public function test(Environment $env, $spec, $skip) { return $this->baseTester->test($env, $spec, $skip); }