コード例 #1
0
 /**
  * @covers WindowsAzure\ServiceManagement\Internal\WindowsAzureService::setUrl
  * @covers WindowsAzure\ServiceManagement\Internal\WindowsAzureService::getUrl
  * @covers WindowsAzure\ServiceManagement\Internal\WindowsAzureService::__construct
  */
 public function testSetUrl()
 {
     // Setup
     $service = new WindowsAzureService();
     $expected = 'Url';
     // Test
     $service->setUrl($expected);
     // Assert
     $this->assertEquals($expected, $service->getUrl());
 }
コード例 #2
0
 /**
  * Converts the current object into ordered array representation.
  * 
  * @return array
  */
 protected function toArray()
 {
     $arr = parent::toArray();
     $order = array(Resources::XTAG_NAMESPACE, Resources::XTAG_SERVICE_NAME, Resources::XTAG_LABEL, Resources::XTAG_DESCRIPTION, Resources::XTAG_LOCATION, Resources::XTAG_AFFINITY_GROUP);
     $ordered = Utilities::orderArray($arr, $order);
     return $ordered;
 }