protected function runDir($directory)
    {
        if (is_array($directory)) {
            return $this->recurseArg($directory, array($this, "runDir"));
        } else {
            $curdir = getcwd();
            chdir($this->phpci->buildPath);

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

            $cmd = $phpunit . ' --tap %s "%s"';
            $success = $this->phpci->executeCommand($cmd, $this->args, $this->phpci->buildPath . $directory);
            chdir($curdir);
            return $success;
        }
    }
protected function runDir($directory)
    {
        if (is_array($directory)) {
            return $this->recurseArg($directory, array($this, "runDir"));
        } else {
            $curdir = getcwd();
            chdir($this->phpci->buildPath);

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

            $cmd = $phpunit . ' --tap %s "%s"';
            $success = $this->phpci->executeCommand($cmd, $this->args, $this->phpci->buildPath . $directory);
            chdir($curdir);
            return $success;
        }
    }
protected function runDir ( $ directory ) { if ( is_array ( $ directory ) ) { return $ this -> recurseArg ( $ directory , array ( $ this , "runDir" ) ) ; } else { $ curdir = getcwd ( ) ; chdir ( $ this -> phpci -> buildPath ) ; $ phpunit = $ this -> phpci -> findBinary ( 'phpunit' ) ; $ cmd = $ phpunit . ' --tap %s "%s"' ; $ success = $ this -> phpci -> executeCommand ( $ cmd , $ this -> args , $ this -> phpci -> buildPath . $ directory ) ; chdir ( $ curdir ) ; return $ success ; } }
Run the PHPUnit tests in a specific directory or array of directories.
@param $directory
@return bool|mixed
Run the PHPUnit tests in a specific directory or array of directories .