Exemplo n.º 1
0
 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');
 }
Exemplo n.º 2
0
 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');
 }