/**
  * @covers WindowsAzure\ServiceRuntime\Internal\LocalResource::getName
  */
 public function testGetName()
 {
     // Setup
     $locaResource = new LocalResource(1, 'local', 'path');
     // Test
     $this->assertEquals('local', $locaResource->getName());
 }
 /**
  * Translates the local resources.
  * 
  * @param string $environmentInfo The role environment info.
  * 
  * @return array 
  */
 private function _translateLocalResources($environmentInfo)
 {
     $localResourcesMap = array();
     $localResourcesInfo = Utilities::tryGetKeysChainValue($environmentInfo, 'CurrentInstance', 'LocalResources', 'LocalResource');
     if (!is_null($localResourcesInfo)) {
         if (array_key_exists('@attributes', $localResourcesInfo)) {
             $localResourcesInfo = array(0 => $localResourcesInfo);
         }
         foreach ($localResourcesInfo as $localResourceInfo) {
             $localResource = new LocalResource($localResourceInfo['@attributes']['sizeInMB'], $localResourceInfo['@attributes']['name'], $localResourceInfo['@attributes']['path']);
             $localResourcesMap[$localResource->getName()] = $localResource;
         }
     }
     return $localResourcesMap;
 }