/** * @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); } }
/** * @depends testShouldPutAndReserve */ public function testShouldGetTubes() { $tubes = $this->client->getTubes(); $this->assertNotEmpty($tubes); $this->assertContains(self::TUBE_NAME, $tubes); }
/** * @depends testPutAndReserve */ public function testGetTubes() { $tubes = $this->client->getTubes(); $this->assertNotEmpty($tubes); $this->assertContains($this->tubeName, $tubes); }