public function testFetchWrongSize() { $mail = new Zend_Mail_Storage_Maildir(array('dirname' => $this->_maildir)); try { $mail->getSize(0); } catch (Exception $e) { return; // test ok } $this->fail('no exception raised while getting size for message 0'); }
public function testSingleSizePlusPlus() { rename($this->_maildir . '/cur/1000000001.P1.example.org:2,FS', $this->_maildir . '/cur/1000000001.P1.example.org,S=456:2,FS'); $mail = new Zend_Mail_Storage_Maildir(array('dirname' => $this->_maildir)); $size = $mail->getSize(2); $this->assertEquals(456, $size); }