예제 #1
0
 /**
  * @param $info
  * @param Queue $queue
  */
 protected function checkMessageInfo($info, Queue $queue)
 {
     $this->assertInternalType('array', $info);
     $this->assertArrayHasKey('adapter', $info);
     $this->assertSame(get_class($queue->getAdapter()), $info['adapter']);
     $this->assertArrayHasKey('queueName', $info);
     $this->assertSame($queue->getName(), $info['queueName']);
 }
예제 #2
0
 public function testGetAdapter()
 {
     $this->assertTrue($this->queue->getAdapter() instanceof ArrayAdapter);
 }