/**
  * @covers WindowsAzure\Queue\QueueRestProxy::clearMessages
  * @covers WindowsAzure\Queue\QueueRestProxy::createMessage
  * @covers WindowsAzure\Queue\QueueRestProxy::listMessages
  * @covers WindowsAzure\Queue\QueueRestProxy::peekMessages
  */
 public function testPeekMessages()
 {
     $interestingTimes = array(null, -1, 0, QueueServiceFunctionalTestData::INTERESTING_TTL, 1000);
     $interestingNums = array(null, -1, 0, 2, 10, 1000);
     foreach ($interestingNums as $numberOfMessages) {
         $options = new PeekMessagesOptions();
         $options->setNumberOfMessages($numberOfMessages);
         $this->peekMessagesWorker($options);
     }
     foreach ($interestingTimes as $timeout) {
         $options = new PeekMessagesOptions();
         $options->setTimeout($timeout);
         $options->setNumberOfMessages(2);
         $this->peekMessagesWorker($options);
     }
 }
 public function testCheckPeekMessagesOptions()
 {
     $options = new PeekMessagesOptions();
     $this->assertNull($options->getTimeout(), 'Default PeekMessagesOptions->getTimeout');
     $this->assertNull($options->getNumberOfMessages(), 'Default PeekMessagesOptions->getNumberOfMessages');
     $options->setTimeout(self::INT_MAX_VALUE);
     $options->setNumberOfMessages(0);
     $this->assertEquals(self::INT_MAX_VALUE, $options->getTimeout(), 'Set PeekMessagesOptions->getTimeout');
     $this->assertEquals(0, $options->getNumberOfMessages(), 'Set PeekMessagesOptions->getNumberOfMessages');
 }