Exemple #1
0
 public function testReconnectingAfterDisconnect()
 {
     $this->beanstalk->listTubes();
     // make sure we connect
     $this->beanstalk->disconnect();
     $tube = 'test-tube';
     $this->beanstalk->useTube($tube);
     $this->assertContains($tube, $this->beanstalk->listTubes());
 }
Exemple #2
0
 public function testDisconnectReturnsValue()
 {
     $this->socket->expects($this->any())->method('disconnect')->willReturn(true);
     $this->assertTrue($this->beanstalk->disconnect());
 }