Example #1
0
 public function testUpdateQueueNotExists()
 {
     $queue = new Queue();
     $queue->setUrl('http://test.x/bla');
     $queueStorage = $this->getMockBuilder('AmazonSQS\\Storage\\QueueStorage')->getMock();
     $queueStorage->expects($this->once())->method('exists')->with($queue)->will($this->returnValue(false));
     $this->setExpectedException('RuntimeException');
     $manager = new \AmazonSQS\Manager('accesskey', 'secretkey');
     $manager->setQueueStorage($queueStorage);
     $queue = $manager->updateQueue($queue);
 }