コード例 #1
0
 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);
 }
コード例 #2
0
 protected function createConfiguration()
 {
     $config = new Configuration($this->rootDir);
     return $config->setSrcDir($this->srcDir)->addCloverXmlPath($this->cloverXmlPath);
 }