Example #1
0
 /**
  * Marks the mail with the processed flag
  *
  * @param ImapAdapter $imap
  * @param Message     $message
  * @param integer     $id
  */
 protected function markProcessed(ImapAdapter $imap, Message $message, $id)
 {
     $flags = $message->getFlags();
     $flags[] = self::PROCESSED_FLAG;
     $imap->setFlags($id, $flags);
 }
Example #2
0
 /**
  * @return \PHPUnit_Framework_MockObject_MockObject|\Checkdomain\Comodo\ImapAdapter
  */
 protected function createImapAdapter()
 {
     $imapAdapter = new ImapAdapter();
     $imapAdapter->setInstance($this->createImapExtension());
     return $imapAdapter;
 }