From 19e93ce806bf45960e176e45a46dd8584cc7c677 Mon Sep 17 00:00:00 2001 From: Lars Moelleken Date: Mon, 24 Oct 2016 12:09:47 +0200 Subject: [PATCH] [+]: fix some more php-docs --- lib/classes/Swift/Mime/MimePart.php | 8 ++++---- tests/unit/Swift/Mime/SimpleMessageTest.php | 9 ++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lib/classes/Swift/Mime/MimePart.php b/lib/classes/Swift/Mime/MimePart.php index 6e388b700..844128061 100644 --- a/lib/classes/Swift/Mime/MimePart.php +++ b/lib/classes/Swift/Mime/MimePart.php @@ -71,7 +71,7 @@ public function __construct(Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEnc * @param string $contentType optional * @param string $charset optional * - * @return Swift_Mime_MimePart + * @return $this */ public function setBody($body, $contentType = null, $charset = null) { @@ -103,7 +103,7 @@ public function getCharset() * * @param string $charset * - * @return Swift_Mime_MimePart + * @return $this */ public function setCharset($charset) { @@ -135,7 +135,7 @@ public function getFormat() * * @param string $format * - * @return Swift_Mime_MimePart + * @return $this */ public function setFormat($format) { @@ -160,7 +160,7 @@ public function getDelSp() * * @param bool $delsp * - * @return Swift_Mime_MimePart + * @return $this */ public function setDelSp($delsp = true) { diff --git a/tests/unit/Swift/Mime/SimpleMessageTest.php b/tests/unit/Swift/Mime/SimpleMessageTest.php index 596b34773..ff589ba29 100644 --- a/tests/unit/Swift/Mime/SimpleMessageTest.php +++ b/tests/unit/Swift/Mime/SimpleMessageTest.php @@ -1,5 +1,8 @@ setTo(array('chris@site.tld', 'mark@site.tld')) ->setCc('john@somewhere.tld') ->setBcc(array('one@site', 'two@site' => 'Two')) - ->setPriority(4) + ->setPriority($message::PRIORITY_LOW) ->setReadReceiptTo('a@b') ->attach($child) ->detach($child) @@ -843,7 +846,7 @@ public function testPriorityIsSetInHeader() $this->_createEncoder(), $this->_createCache() ); - $message->setPriority(5); + $message->setPriority($message::PRIORITY_LOWEST); } public function testPriorityHeaderIsAddedIfNoneSet() @@ -861,7 +864,7 @@ public function testPriorityHeaderIsAddedIfNoneSet() $this->_createCache() ); - $message->setPriority(4); + $message->setPriority($message::PRIORITY_LOW); } public function testReadReceiptAddressReadFromHeader()