Esempio n. 1
0
 /**
  * Add queue, add message in queue, remove queue, check queue and message 
  */
 public function test_removeQueue_4()
 {
     $name = 'Hello from removeQueue 4';
     $purge = TRUE;
     $this->m->addQueue($name);
     $mid = $this->m->addMessage($name, $name, array());
     $this->m->removeQueue($name, $purge);
     $method = new ReflectionMethod('phpMQ\\pdom', 'getQueueID');
     $method->setAccessible(TRUE);
     $this->assertFalse($method->invoke($this->setUp(), $name));
     $this->assertFalse($this->m->removeMessage($mid));
 }