コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     // Setup container names array (list of container names used by
     // integration tests)
     self::$testQueues = array();
     $rint = mt_rand(0, 1000000);
     for ($i = 0; $i < 10; $i++) {
         self::$testQueues[$i] = self::$testQueuesPrefix . $rint . ($i + 1);
     }
     self::$creatableQueues = array();
     for ($i = 0; $i < 3; $i++) {
         self::$creatableQueues[$i] = self::$createableQueuesPrefix . $rint . ($i + 1);
     }
     self::$testQueueForMessages = self::$testQueues[0];
     self::$testQueueForMessages2 = self::$testQueues[1];
     self::$testQueueForMessages3 = self::$testQueues[2];
     self::$testQueueForMessages4 = self::$testQueues[3];
     self::$testQueueForMessages5 = self::$testQueues[4];
     self::$testQueueForMessages6 = self::$testQueues[5];
     self::$testQueueForMessages7 = self::$testQueues[6];
     self::$testQueueForMessages8 = self::$testQueues[7];
     self::$creatableQueue1 = self::$creatableQueues[0];
     self::$creatableQueue2 = self::$creatableQueues[1];
     self::$creatableQueue3 = self::$creatableQueues[2];
     // Create all test containers and their content
     self::createQueues(self::$testQueuesPrefix, self::$testQueues);
 }