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::listQueues
  */
 public function testListQueuesWithOneResult()
 {
     // Setup
     $queueName = 'listqueueswithoneresult';
     parent::createQueue($queueName);
     // Test
     $result = $this->restProxy->listQueues();
     $queues = $result->getQueues();
     // Assert
     $this->assertEquals(1, count($queues));
 }
 public function __construct()
 {
     parent::__construct();
     $fiddlerFilter = new FiddlerFilter();
     $this->restProxy = $this->restProxy->withFilter($fiddlerFilter);
 }