setCacheFile() public method

public setCacheFile ( $cacheFile )
Beispiel #1
0
 public function testThatCacheFileCanBeMutated()
 {
     $cacheFile = 'some-directory/some.file';
     $config = new Config();
     $config->setCacheFile($cacheFile);
     $this->assertSame($cacheFile, $config->getCacheFile());
 }
 public function testResolveCacheFileWithConfigAndOption()
 {
     $configCacheFile = 'foo/bar.baz';
     $optionCacheFile = 'bar.baz';
     $this->config->setCacheFile($configCacheFile);
     $this->resolver->setOption('cache-file', $optionCacheFile);
     $this->resolver->resolve();
     $this->assertSame($optionCacheFile, $this->config->getCacheFile());
 }