示例#1
0
 public function test_getMessageIDfromQueue_1()
 {
     $name = 'getMessageIDfromQueue 1';
     $mq_id = $this->m->addQueue($name);
     $mid[] = $this->m->addMessage($name, 'Hello from getMessageIDfromQueue');
     $mid[] = $this->m->addMessage($name, 'Hello from getMessageIDfromQueue');
     $mid[] = $this->m->addMessage($name, 'Hello from getMessageIDfromQueue');
     $method = new ReflectionMethod('phpMQ\\pdom', 'getMessageIDfromQueue');
     $method->setAccessible(TRUE);
     $mid_get = $method->invoke($this->setUp(), $mq_id);
     $this->assertEquals($mid, $mid_get);
 }