Beispiel #1
0
 /**
  * Add queue and 2 messages in it, check the order in the queue
  */
 public function test_consumeMessage_4()
 {
     $name = 'Hello from consumeMessage 4';
     $this->m->addQueue($name);
     $this->m->addMessage($name, $name);
     $this->m->addMessage($name, $name);
     $message_consume_1 = $this->m->consumeMessage($name);
     $message_consume_2 = $this->m->consumeMessage($name);
     $this->assertLessThan($message_consume_2['m_id'], $message_consume_1['m_id']);
 }