@@ -127,6 +127,9 @@ |
||
| 127 | 127 | |
| 128 | 128 | // -- Creation Methods |
| 129 | 129 | |
| 130 | + /** |
|
| 131 | + * @return Swift_InputByteStream |
|
| 132 | + */ |
|
| 130 | 133 | private function _createMockInputStream() |
| 131 | 134 | { |
| 132 | 135 | return $this->getMock('Swift_InputByteStream'); |
@@ -183,6 +183,10 @@ |
||
| 183 | 183 | |
| 184 | 184 | // -- Helpers |
| 185 | 185 | |
| 186 | + /** |
|
| 187 | + * @param string $pattern |
|
| 188 | + * @param Swift_ByteStream_ArrayByteStream $stream |
|
| 189 | + */ |
|
| 186 | 190 | public function assertPatternInStream($pattern, $stream, $message = '%s') |
| 187 | 191 | { |
| 188 | 192 | $string = ''; |
@@ -68,6 +68,9 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | // -- Custom Assertions |
| 70 | 70 | |
| 71 | + /** |
|
| 72 | + * @param string $attachmentData |
|
| 73 | + */ |
|
| 71 | 74 | public function assertAttachmentFromSourceMatches($attachmentData, $source) |
| 72 | 75 | { |
| 73 | 76 | $encHeader = 'Content-Transfer-Encoding: base64'; |
@@ -104,6 +107,10 @@ discard block |
||
| 104 | 107 | fclose($fp); |
| 105 | 108 | } |
| 106 | 109 | |
| 110 | + /** |
|
| 111 | + * @param integer $size |
|
| 112 | + * @param string $attachmentPath |
|
| 113 | + */ |
|
| 107 | 114 | private function _createMessageWithRandomAttachment($size, $attachmentPath) |
| 108 | 115 | { |
| 109 | 116 | $this->_fillFileWithRandomBytes($size, $attachmentPath); |
@@ -125,11 +125,17 @@ |
||
| 125 | 125 | |
| 126 | 126 | // -- Creation methods |
| 127 | 127 | |
| 128 | + /** |
|
| 129 | + * @return Swift_Events_EventListener |
|
| 130 | + */ |
|
| 128 | 131 | private function _createPlugin() |
| 129 | 132 | { |
| 130 | 133 | return $this->getMockery('Swift_Events_EventListener')->shouldIgnoreMissing(); |
| 131 | 134 | } |
| 132 | 135 | |
| 136 | + /** |
|
| 137 | + * @return Swift_Transport |
|
| 138 | + */ |
|
| 133 | 139 | private function _createTransport() |
| 134 | 140 | { |
| 135 | 141 | return $this->getMockery('Swift_Transport')->shouldIgnoreMissing(); |
@@ -294,6 +294,12 @@ |
||
| 294 | 294 | return new Swift_Mime_Attachment($headers, $encoder, $cache, new Swift_Mime_Grammar(), $mimeTypes); |
| 295 | 295 | } |
| 296 | 296 | |
| 297 | + /** |
|
| 298 | + * @param string $path |
|
| 299 | + * @param string $data |
|
| 300 | + * |
|
| 301 | + * @return Swift_FileStream |
|
| 302 | + */ |
|
| 297 | 303 | protected function _createFileStream($path, $data, $stub = true) |
| 298 | 304 | { |
| 299 | 305 | $file = $this->getMockery('Swift_FileStream'); |
@@ -474,6 +474,9 @@ |
||
| 474 | 474 | |
| 475 | 475 | // -- Creation Methods |
| 476 | 476 | |
| 477 | + /** |
|
| 478 | + * @return Swift_CharacterStream |
|
| 479 | + */ |
|
| 477 | 480 | private function _createCharacterStream($stub = false) |
| 478 | 481 | { |
| 479 | 482 | return $this->getMockery('Swift_CharacterStream')->shouldIgnoreMissing(); |
@@ -182,6 +182,9 @@ |
||
| 182 | 182 | $this->assertEquals('References: <a@b> <x@y>'."\r\n", $header->toString()); |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $name |
|
| 187 | + */ |
|
| 185 | 188 | private function _getHeader($name) |
| 186 | 189 | { |
| 187 | 190 | return new Swift_Mime_Headers_IdentificationHeader($name, new Swift_Mime_Grammar()); |
@@ -307,6 +307,9 @@ discard block |
||
| 307 | 307 | ); |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | + /** |
|
| 311 | + * @param string $name |
|
| 312 | + */ |
|
| 310 | 313 | private function _getHeader($name, $encoder) |
| 311 | 314 | { |
| 312 | 315 | $header = new Swift_Mime_Headers_MailboxHeader($name, $encoder, new Swift_Mime_Grammar()); |
@@ -315,6 +318,9 @@ discard block |
||
| 315 | 318 | return $header; |
| 316 | 319 | } |
| 317 | 320 | |
| 321 | + /** |
|
| 322 | + * @param string $type |
|
| 323 | + */ |
|
| 318 | 324 | private function _getEncoder($type, $stub = false) |
| 319 | 325 | { |
| 320 | 326 | $encoder = $this->getMockery('Swift_Mime_HeaderEncoder')->shouldIgnoreMissing(); |
@@ -70,6 +70,9 @@ |
||
| 70 | 70 | ); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $name |
|
| 75 | + */ |
|
| 73 | 76 | private function _getHeader($name) |
| 74 | 77 | { |
| 75 | 78 | return new Swift_Mime_Headers_PathHeader($name, new Swift_Mime_Grammar()); |