/** * @covers WindowsAzure\ServiceManagement\Models\StorageService::__construct */ public function test__construct() { // Setup $expectedGroup = 'group'; $expectedName = 'name'; $raw = array(Resources::XTAG_AFFINITY_GROUP => $expectedGroup, Resources::XTAG_SERVICE_NAME => $expectedName); // Test $storageService = new StorageService($raw); // Assert $this->assertEquals($expectedGroup, $storageService->getAffinityGroup()); $this->assertEquals($expectedName, $storageService->getName()); return $storageService; }