public static function tearDownAfterClass()
 {
     parent::tearDownAfterClass();
     $service = self::createService();
     if (!Configuration::isEmulated()) {
         $serviceProperties = QueueServiceFunctionalTestData::getDefaultServiceProperties();
         $service->setServiceProperties($serviceProperties);
     }
     foreach (QueueServiceFunctionalTestData::$TEST_QUEUE_NAMES as $name) {
         self::staticSafeDeleteQueue($service, $name);
     }
 }
 public static function tearDownAfterClass()
 {
     if (self::$isOneTimeSetup) {
         $integrationTestBase = new IntegrationTestBase();
         $integrationTestBase->setUp();
         if (!$integrationTestBase->isEmulated()) {
             $serviceProperties = QueueServiceFunctionalTestData::getDefaultServiceProperties();
             $integrationTestBase->restProxy->setServiceProperties($serviceProperties);
         }
         self::$isOneTimeSetup = false;
     }
     parent::tearDownAfterClass();
 }
 /**
  * @covers WindowsAzure\Queue\QueueRestProxy::getServiceProperties
  * @covers WindowsAzure\Queue\QueueRestProxy::setServiceProperties
  */
 public function testSetServicePropertiesNoOptions()
 {
     $serviceProperties = QueueServiceFunctionalTestData::getDefaultServiceProperties();
     $this->setServicePropertiesWorker($serviceProperties, null);
 }
 /**
  * @covers WindowsAzure\Queue\QueueRestProxy::setServiceProperties
  */
 public function testSetServicePropertiesNullOptions4()
 {
     $serviceProperties = QueueServiceFunctionalTestData::getDefaultServiceProperties();
     try {
         $this->restProxy->setServiceProperties($serviceProperties, null);
         $this->assertFalse($this->isEmulated(), 'service properties should throw in emulator');
     } catch (ServiceException $e) {
         if ($this->isEmulated()) {
             // Setting is not supported in emulator
             $this->assertEquals(TestResources::STATUS_BAD_REQUEST, $e->getCode(), 'getCode');
         } else {
             throw $e;
         }
     }
 }