public static function newFile($name, $permissions = null)
{
return new vfsStreamFile($name, $permissions);
}
/** * @since 3.0.0 * @group issue_58 * @test */ public function canEnableFileAnnotationCache() { $root = vfsStream::setup(); $file = vfsStream::newFile('annotations.cache')->withContent(serialize($this->createdCachedAnnotation()))->at($root); persistAnnotationsInFile($file->url()); assertTrue(AnnotationCache::has('foo', 'bar')); }