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'); }
public function testCreateExistingFolder() { $mail = new Writable\Maildir($this->_params); $this->setExpectedException('Zend\\Mail\\Storage\\Exception\\InvalidArgumentException'); $mail->createFolder('subfolder.test'); }