function Application::initializeTestResultCache
Throws
UnknownSubscriberTypeException
1 call to Application::initializeTestResultCache()
- Application::run in vendor/
phpunit/ phpunit/ src/ TextUI/ Application.php
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Application.php, line 658
Class
- Application
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUICode
private function initializeTestResultCache(Configuration $configuration) : ResultCache {
if ($configuration->cacheResult()) {
$cache = new DefaultResultCache($configuration->testResultCacheFile());
new ResultCacheHandler($cache, EventFacade::instance());
return $cache;
}
return new NullResultCache();
}