public function testCachePrefix() { $root = vfsStream::setup(); $this->scraper->cacheOn(); $this->scraper->setCacheDir($root->url()); $this->scraper->setCachePrefix('myprefix'); $this->scraper->cache_get('http://posttestserver.com/post.php?dir=projectivemotion/PhpScraperTools'); $cfile = $root->getChildren(); $this->assertStringStartsWith('myprefix', $cfile[0]->getName()); }