예제 #1
0
 public function testSetGetOptions()
 {
     $this->assertTrue($this->options instanceof QueueOptions);
     $this->assertEquals($this->options, $this->queue->getOptions());
     $options = new QueueOptions();
     $this->assertTrue($this->queue->setOptions($options) instanceof Queue);
     $this->assertEquals($options, $this->queue->getOptions());
     // Test default options
     $q = new Queue($this->name, $this->adapter);
     $this->assertEquals($options, $q->getOptions());
 }