public function testChangeFolder() { $mail = new Zend_Mail_Storage_Folder_Mbox($this->_params); try { $mail->selectFolder(DIRECTORY_SEPARATOR . 'subfolder' . DIRECTORY_SEPARATOR . 'test'); } catch (Exception $e) { $this->fail('exception raised while selecting existing folder'); } $this->assertEquals($mail->getCurrentFolder(), DIRECTORY_SEPARATOR . 'subfolder' . DIRECTORY_SEPARATOR . 'test'); }
public function testChangeFolder() { $mail = new Zend_Mail_Storage_Folder_Mbox($this->_params); try { $mail->selectFolder('/subfolder/test.mbox'); } catch (Exception $e) { $this->fail('exception raised while selecting existing folder'); } $this->assertEquals($mail->getCurrentFolder(), '/subfolder/test.mbox'); }