/** * 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); }
/** * @return \PHPUnit_Framework_MockObject_MockObject|\Checkdomain\Comodo\ImapAdapter */ protected function createImapAdapter() { $imapAdapter = new ImapAdapter(); $imapAdapter->setInstance($this->createImapExtension()); return $imapAdapter; }