コード例 #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);
 }
コード例 #2
0
 public function setUp()
 {
     parent::setUp();
     // Setup container names array (list of container names used by
     // integration tests)
     self::$testQueues = array();
     for ($i = 0; $i < 10; $i++) {
         self::$testQueues[$i] = self::$testQueuesPrefix . round(gettimeofday(true)) . ($i + 1);
     }
     self::$creatableQueues = array();
     for ($i = 0; $i < 3; $i++) {
         self::$creatableQueues[$i] = self::$createableQueuesPrefix . ($i + 1);
     }
     self::$TEST_QUEUE_FOR_MESSAGES = self::$testQueues[0];
     self::$TEST_QUEUE_FOR_MESSAGES_2 = self::$testQueues[1];
     self::$TEST_QUEUE_FOR_MESSAGES_3 = self::$testQueues[2];
     self::$TEST_QUEUE_FOR_MESSAGES_4 = self::$testQueues[3];
     self::$TEST_QUEUE_FOR_MESSAGES_5 = self::$testQueues[4];
     self::$TEST_QUEUE_FOR_MESSAGES_6 = self::$testQueues[5];
     self::$TEST_QUEUE_FOR_MESSAGES_7 = self::$testQueues[6];
     self::$TEST_QUEUE_FOR_MESSAGES_8 = self::$testQueues[7];
     self::$CREATABLE_QUEUE_1 = self::$creatableQueues[0];
     self::$CREATABLE_QUEUE_2 = self::$creatableQueues[1];
     self::$CREATABLE_QUEUE_3 = self::$creatableQueues[2];
     // Create all test containers and their content
     self::createQueues(self::$testQueuesPrefix, self::$testQueues);
 }