diff --git a/test/Storage/MessageTest.php b/test/Storage/MessageTest.php index 49e17189..dfdf1153 100644 --- a/test/Storage/MessageTest.php +++ b/test/Storage/MessageTest.php @@ -161,7 +161,7 @@ public function testSplitInvalidMessage() { try { Mime\Decode::splitMessageStruct("--xxx\n", 'xxx'); - } catch (\Zend\Mime\Exception $e) { + } catch (\Zend\Mime\Exception\ExceptionInterface $e) { return; // ok } @@ -229,7 +229,7 @@ public function testSplitInvalidHeader() $header = ''; try { Mime\Decode::splitHeaderField($header); - } catch (\Zend\Mime\Exception $e) { + } catch (\Zend\Mime\Exception\ExceptionInterface $e) { return; // ok }