public function setUp()
 {
     $fileManager = new DirectoryBasedFilesAccess(__DIR__ . '/../../../tmp/files');
     $fileManager->enableImageSizeCalculation();
     $this->fileManager = $fileManager;
     KVMLoggerFactory::createWithKLogger(__DIR__ . '/../../../tmp');
 }
 public function testUrl()
 {
     $fileManager = $this->fileManager->setPublicUrl('http://www.example.org');
     $file = $fileManager->getFile('a.txt');
     $this->assertInstanceOf('AnyContent\\Client\\File', $file);
     $file = $fileManager->getFile('Music/c.txt');
     $this->assertEquals('c.txt', $file->getName());
     $this->assertEquals('Music/c.txt', $file->getId());
     $this->assertEquals('http://www.example.org/Music/c.txt', $file->getUrl());
 }