Пример #1
0
 public function testCreateExistingFolder()
 {
     $mail = new Writable\Maildir($this->_params);
     try {
         $mail->createFolder('subfolder.test');
     } catch (\Exception $e) {
         return;
         // ok
     }
     $this->fail('should not be able to create existing folder');
 }
Пример #2
0
 public function testCreateExistingFolder()
 {
     $mail = new Writable\Maildir($this->_params);
     $this->setExpectedException('Zend\\Mail\\Storage\\Exception\\InvalidArgumentException');
     $mail->createFolder('subfolder.test');
 }