コード例 #1
0
ファイル: ConnectionTest.php プロジェクト: phlib/beanstalk
 public function testIgnore()
 {
     $tube = 'test-tube';
     $this->socket->expects($this->any())->method('read')->willReturn('WATCHING 123');
     $this->beanstalk->watch($tube);
     $this->execute("ignore {$tube}", 'WATCHING 123', 'ignore', [$tube]);
 }
コード例 #2
0
ファイル: IntegrationTest.php プロジェクト: phlib/beanstalk
 public function testWatchingMoreTubes()
 {
     $tube = 'test-tube';
     $this->beanstalk->watch($tube);
     $this->assertContains($tube, $this->beanstalk->listTubesWatched());
 }