protected $streamWrapperManager;
/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
$settings =
new Settings([]);
$this->streamWrapperManager =
$this->
createMock(StreamWrapperManagerInterface::
class);
$this->logger =
$this->
createMock('Psr\Log\LoggerInterface'
);
$this->fileSystem =
new FileSystem($this->streamWrapperManager,
$settings,
$this->logger
);
} /**
* @covers ::chmod
*/
public function testChmodFile() { vfsStream::
setup('dir'
);
vfsStream::
create(['test.txt' => 'asdf'
]);
$uri = 'vfs://dir/test.txt';
$this->
assertTrue($this->fileSystem->
chmod($uri));