Пример #1
0
 /**
  * @depends testShouldPutAndReserve
  */
 public function testShouldGetTubes()
 {
     $tubes = $this->client->getTubes();
     $this->assertNotEmpty($tubes);
     $this->assertContains(self::TUBE_NAME, $tubes);
     // Cleanup tubes
     foreach ($tubes as $tube) {
         $isRunning = true;
         $this->client->watch($tube);
         do {
             $job = $this->client->reserve(0.1);
             if ($job) {
                 $this->assertTrue($job->delete());
             } else {
                 $isRunning = false;
             }
         } while ($isRunning);
     }
 }
Пример #2
0
 /**
  * @depends testShouldPutAndReserve
  */
 public function testShouldGetTubes()
 {
     $tubes = $this->client->getTubes();
     $this->assertNotEmpty($tubes);
     $this->assertContains(self::TUBE_NAME, $tubes);
 }
Пример #3
0
 /**
  * @depends testPutAndReserve
  */
 public function testGetTubes()
 {
     $tubes = $this->client->getTubes();
     $this->assertNotEmpty($tubes);
     $this->assertContains($this->tubeName, $tubes);
 }