/**
  * @return void
  */
 public function testGetFolderInfoByIdentifierGetsContainerPropertiesIfRootFolderGiven()
 {
     $containerPropertiesProphecy = $this->prophesize(ContainerProperties::class);
     $containerPropertiesProphecy->getLastModified()->willReturn(new \DateTime());
     $containerProperties = $containerPropertiesProphecy->reveal();
     $this->blobRestProxy->getContainerProperties(Arg::any())->willReturn($containerProperties);
     $this->storageDriver->getFolderInfoByIdentifier('/');
     $this->blobRestProxy->getContainerProperties(Arg::any())->shouldHaveBeenCalled();
 }
 /**
  * @param string $fileIdentifier
  * @param array $propertiesToExtract
  * @return array
  */
 public function getFileInfoByIdentifier($fileIdentifier, array $propertiesToExtract = array())
 {
     $fileInfo = [];
     if ($fileIdentifier === '') {
         $properties = $this->blobRestProxy->getContainerProperties($this->container);
     } else {
         $blob = $this->getBlob($fileIdentifier);
         $properties = $blob->getProperties();
         $fileInfo['size'] = $properties->getContentLength();
     }
     return array_merge($fileInfo, array('identifier' => $fileIdentifier, 'name' => basename(rtrim($fileIdentifier, '/')), 'storage' => $this->storageUid, 'identifier_hash' => $this->hash($fileIdentifier, ''), 'folder_hash' => $this->hash(dirname($fileIdentifier), ''), 'mtime' => $properties->getLastModified()->format('U')));
 }