public function testGetFilesystem()
{
$this->assertInstanceOf('League\\Flysystem\\FilesystemInterface', $this->writer->getFilesystem('field', []));
$this->assertInstanceOf('League\\Flysystem\\FilesystemInterface', $this->writer->getFilesystem('field', ['key' => 'value']));
$this->assertInstanceOf('League\\Flysystem\\FilesystemInterface', $this->writer->getFilesystem('field', ['filesystem' => ['adapter' => new NullAdapter()]]));
$this->assertInstanceOf('League\\Flysystem\\FilesystemInterface', $this->writer->getFilesystem('field', ['filesystem' => ['adapter' => function () {
return new NullAdapter();
}]]));
}