/** * @param string $testFile */ public function endTest($testFile) { $files = array_keys($this->driver->stopCodeCoverage()); foreach ($files as $file) { if (!$this->isIgnored($file)) { $this->cache->add($file, $testFile); } } }
public function test_paths_are_converted_to_relative_path() { $cache = new Cache($this->fs); $cache->add($this->root->url() . '/foo', $this->root->url() . '/bar'); $this->assertEquals(['bar'], $cache->get('foo')); }