public function testGetVanishedFolder() { $mail = new Folder\Mbox($this->_params); $root = $mail->getFolders(); $root->foobar = new Folder('foobar', DIRECTORY_SEPARATOR . 'foobar'); try { $mail->selectFolder('foobar'); } catch (\Exception $e) { return; // ok } $this->fail('no error while getting vanished folder'); }
public function testGetVanishedFolder() { $mail = new Folder\Mbox($this->_params); $root = $mail->getFolders(); $root->foobar = new Folder('foobar', DIRECTORY_SEPARATOR . 'foobar'); $this->setExpectedException('Zend\\Mail\\Storage\\Exception\\RuntimeException'); $mail->selectFolder('foobar'); }