public function testOutOfBounds() { $mail = new Storage\Mbox(array('filename' => $this->_mboxFile)); $this->setExpectedException('Zend\\Mail\\Storage\\Exception\\OutOfBoundsException'); $mail->seek(INF); }
public function testOutOfBounds() { $mail = new Storage\Mbox(array('filename' => $this->_mboxFile)); try { $mail->seek(INF); } catch (\Exception $e) { return; // test ok } $this->fail('no exception raised while seeking to not invalid id'); }