public function testOpenFile_SetModeW() { $this->storage->createFile('some.file'); $fileinfo = new FileInfo($this->storage->getPath('some.file')); $expected = new FileObject($this->storage->getPath('some.file'), 'w'); $this->assertEquals($expected, $fileinfo->openFile('w')); }