private function setCacheEntry($filePath) { $content = $this->processor->process($filePath); $files = $this->processor->getFiles($filePath); $lastModified = $this->processor->getLastModified($filePath); $entry = new CacheEntry($content, $files, $lastModified); $this->cache->setEntry($filePath, $entry); $this->entries[$filePath] = $entry; return $entry; }
protected function assertProcess($expected, $current, $file = 'example.file') { $this->fileSystem->setContent($file, $current); $this->assertEquals($expected, $this->target->process($file)); }