/** * @param Container $container */ public function __construct(Container $container) { $this->container = $container; $this->workingCacheDirectory = $container->getWorkingCacheDirectory(); $this->fileCollector = new FileCollector(new FileCollection()); $this->testCollector = new FileCollector(new FileCollection()); $this->cachedFileCollection = $this->getCachedFileCollection(self::FILES); $this->cachedTestCollection = $this->getCachedFileCollection(self::TESTS); if ($this->hasResults()) { $this->loadResults(); } }