/** * 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)); }
/** * 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()); }