private function resolveTest(Test $root, TestName $name) { if ($name == $root->getName()) { return $root; } if ($root instanceof TestSuite) { foreach ($root->getTests() as $test) { try { return $this->resolveTest($test, $name); } catch (\InvalidArgumentException $ignored) { } } } throw new \InvalidArgumentException("Could not resolve [{$name}]"); }
public function __construct(LinkedConfiguration $config) { parent::__construct(); $this->config = $config; }