public function __construct($paths) { $rootDir = getcwd(); $config = new Configuration(); $config->setSrcDir($rootDir); $this->setCloverPaths($paths); foreach ($this->getCloverPaths() as $path) { if (file_exists($path)) { $config->addCloverXmlPath($path); } else { $config->addCloverXmlPath($rootDir . DIRECTORY_SEPARATOR . $path); } } $this->api = new Jobs($config); }
protected function createConfiguration() { $config = new Configuration($this->rootDir); return $config->setSrcDir($this->srcDir)->addCloverXmlPath($this->cloverXmlPath); }