protected function runConfigFile($configPath)
    {
        if (is_array($configPath)) {
            return $this->recurseArg($configPath, array($this, "runConfigFile"));
        } else {
            if ($this->runFrom) {
                $curdir = getcwd();
                chdir($this->phpci->buildPath . DIRECTORY_SEPARATOR . $this->runFrom);
            }

            $phpunit = $this->phpci->findBinary('phpunit');

            $cmd = $phpunit . ' --tap %s -c "%s" ' . $this->coverage . $this->path;
            $success = $this->phpci->executeCommand($cmd, $this->args, $this->phpci->buildPath . $configPath);

            if ($this->runFrom) {
                chdir($curdir);
            }

            return $success;
        }
    }
protected function runConfigFile($configPath)
    {
        if (is_array($configPath)) {
            return $this->recurseArg($configPath, array($this, "runConfigFile"));
        } else {
            if ($this->runFrom) {
                $curdir = getcwd();
                chdir($this->phpci->buildPath . DIRECTORY_SEPARATOR . $this->runFrom);
            }

            $phpunit = $this->phpci->findBinary('phpunit');

            $cmd = $phpunit . ' --tap %s -c "%s" ' . $this->coverage . $this->path;
            $success = $this->phpci->executeCommand($cmd, $this->args, $this->phpci->buildPath . $configPath);

            if ($this->runFrom) {
                chdir($curdir);
            }

            return $success;
        }
    }
protected function runConfigFile ( $ configPath ) { if ( is_array ( $ configPath ) ) { return $ this -> recurseArg ( $ configPath , array ( $ this , "runConfigFile" ) ) ; } else { if ( $ this -> runFrom ) { $ curdir = getcwd ( ) ; chdir ( $ this -> phpci -> buildPath . DIRECTORY_SEPARATOR . $ this -> runFrom ) ; } $ phpunit = $ this -> phpci -> findBinary ( 'phpunit' ) ; $ cmd = $ phpunit . ' --tap %s -c "%s" ' . $ this -> coverage . $ this -> path ; $ success = $ this -> phpci -> executeCommand ( $ cmd , $ this -> args , $ this -> phpci -> buildPath . $ configPath ) ; if ( $ this -> runFrom ) { chdir ( $ curdir ) ; } return $ success ; } }
Run the tests defined in a PHPUnit config file.
@param $configPath
@return bool|mixed
Run the tests defined in a PHPUnit config file .