/**
  * constructor
  *
  * @param CjwNewsletterMailboxItem $rawMailContent
  * @return void
  */
 function __construct($mailboxItem)
 {
     $this->MailboxItem = $mailboxItem;
     $this->MailParser = new ezcMailParser();
     // tmp dir for ezcmailparser have to be writeable
     // ... openbasedir restriction ...
     // projectvar/ cjw_newsletter/ tmp
     $this->MailParser->setTmpDir($this->getTmpDir(true));
 }
示例#2
0
 /**
  * Test for bug #12844.
  */
 public function testTempDirNonWindows()
 {
     if (ezcBaseFeatures::os() === 'Windows') {
         self::markTestSkipped('Test is for non-Windows only');
     }
     ezcMailParser::setTmpDir(null);
     $this->assertEquals('/tmp/', ezcMailParser::getTmpDir());
 }