hasArgument('--cache-directory', $arguments)) { $cliConfiguration = (new CliConfigurationBuilder)->fromParameters([]); $configurationFile = (new XmlConfigurationFileFinder)->find($cliConfiguration); $xmlConfiguration = DefaultConfiguration::create(); if (is_string($configurationFile)) { $xmlConfiguration = (new Loader)->load($configurationFile); } if (! $xmlConfiguration->phpunit()->hasCacheDirectory()) { $arguments = $this->pushArgument('--cache-directory', $arguments); $arguments = $this->pushArgument((string) realpath(self::TEMPORARY_FOLDER), $arguments); } } if (! $this->hasArgument('--parallel', $arguments)) { return $this->pushArgument('--cache-result', $arguments); } return $arguments; } }