private function setupWorkspace()
    {
        // search spec configuration file.
        $config_file_name = $this->runner->getConfigurationFileName();
        $dirs = explode(DS, getcwd());
        $find = false;
        do {
            $workspace = join(DS, $dirs);
            $config_file_path = $workspace . DS . $config_file_name;
            if (file_exists($config_file_path) && is_file($config_file_path)) {
                $find = true;
                break;
            }
        } while (array_pop($dirs));
        if (!$find) $workspace = getcwd();

        $this->runner->setWorkspace($workspace);
    }