Exemplo n.º 1
0
 public function testWrongMultipart()
 {
     $message = new Message(array('raw' => "Content-Type: multipart/mixed\r\n\r\ncontent"));
     try {
         $message->getPart(1);
     } catch (\Zend\Exception $e) {
         return;
         // ok
     }
     $this->fail('no exception raised while getting part from message without boundary');
 }