Ejemplo n.º 1
0
 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}]");
 }
Ejemplo n.º 2
0
 public function __construct(LinkedConfiguration $config)
 {
     parent::__construct();
     $this->config = $config;
 }