@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | * @param string $bcc |
| 93 | 93 | * @param Swift_Message|null $message |
| 94 | 94 | * |
| 95 | - * @return PHPUnit_Framework_TestCase $this |
|
| 95 | + * @return MailTracking $this |
|
| 96 | 96 | */ |
| 97 | 97 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
| 98 | 98 | { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @param string $cc |
| 109 | 109 | * @param Swift_Message|null $message |
| 110 | 110 | * |
| 111 | - * @return PHPUnit_Framework_TestCase $this |
|
| 111 | + * @return MailTracking $this |
|
| 112 | 112 | */ |
| 113 | 113 | protected function seeEmailCc($cc, Swift_Message $message = null) |
| 114 | 114 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * @param string $excerpt |
| 125 | 125 | * @param Swift_Message|null $message |
| 126 | 126 | * |
| 127 | - * @return PHPUnit_Framework_TestCase $this |
|
| 127 | + * @return MailTracking $this |
|
| 128 | 128 | */ |
| 129 | 129 | protected function seeEmailContains($excerpt, Swift_Message $message = null) |
| 130 | 130 | { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * @param string $excerpt |
| 141 | 141 | * @param Swift_Message|null $message |
| 142 | 142 | * |
| 143 | - * @return PHPUnit_Framework_TestCase $this |
|
| 143 | + * @return MailTracking $this |
|
| 144 | 144 | */ |
| 145 | 145 | protected function seeEmailDoesNotContain($excerpt, Swift_Message $message = null) |
| 146 | 146 | { |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * @param string $body |
| 157 | 157 | * @param Swift_Message|null $message |
| 158 | 158 | * |
| 159 | - * @return PHPUnit_Framework_TestCase $this |
|
| 159 | + * @return MailTracking $this |
|
| 160 | 160 | */ |
| 161 | 161 | protected function seeEmailEquals($body, Swift_Message $message = null) |
| 162 | 162 | { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * @param string $sender |
| 173 | 173 | * @param Swift_Message|null $message |
| 174 | 174 | * |
| 175 | - * @return PHPUnit_Framework_TestCase $this |
|
| 175 | + * @return MailTracking $this |
|
| 176 | 176 | */ |
| 177 | 177 | protected function seeEmailFrom($sender, Swift_Message $message = null) |
| 178 | 178 | { |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * @param string $reply_to |
| 190 | 190 | * @param Swift_Message|null $message |
| 191 | 191 | * |
| 192 | - * @return PHPUnit_Framework_TestCase $this |
|
| 192 | + * @return MailTracking $this |
|
| 193 | 193 | */ |
| 194 | 194 | protected function seeEmailReplyTo($reply_to, Swift_Message $message = null) |
| 195 | 195 | { |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | * |
| 205 | 205 | * @param integer $count |
| 206 | 206 | * |
| 207 | - * @return PHPUnit_Framework_TestCase $this |
|
| 207 | + * @return MailTracking $this |
|
| 208 | 208 | */ |
| 209 | 209 | protected function seeEmailsSent($count) |
| 210 | 210 | { |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | * @param string $subject |
| 222 | 222 | * @param Swift_Message|null $message |
| 223 | 223 | * |
| 224 | - * @return PHPUnit_Framework_TestCase $this |
|
| 224 | + * @return MailTracking $this |
|
| 225 | 225 | */ |
| 226 | 226 | protected function seeEmailSubject($subject, Swift_Message $message = null) |
| 227 | 227 | { |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | * @param string $recipient |
| 239 | 239 | * @param Swift_Message|null $message |
| 240 | 240 | * |
| 241 | - * @return PHPUnit_Framework_TestCase $this |
|
| 241 | + * @return MailTracking $this |
|
| 242 | 242 | */ |
| 243 | 243 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 244 | 244 | { |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | /** |
| 252 | 252 | * Assert that no emails were sent. |
| 253 | 253 | * |
| 254 | - * @return PHPUnit_Framework_TestCase $this |
|
| 254 | + * @return MailTracking $this |
|
| 255 | 255 | */ |
| 256 | 256 | protected function seeEmailWasNotSent() |
| 257 | 257 | { |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | /** |
| 264 | 264 | * Assert that at least one email was sent. |
| 265 | 265 | * |
| 266 | - * @return PHPUnit_Framework_TestCase $this |
|
| 266 | + * @return MailTracking $this |
|
| 267 | 267 | */ |
| 268 | 268 | protected function seeEmailWasSent() |
| 269 | 269 | { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
| 98 | 98 | { |
| 99 | 99 | $this->assertArrayHasKey($bcc, (array)$this->getEmail($message) |
| 100 | - ->getBcc(), "No email was bcc'ed to $bcc."); |
|
| 100 | + ->getBcc(), "No email was bcc'ed to $bcc."); |
|
| 101 | 101 | |
| 102 | 102 | return $this; |
| 103 | 103 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | protected function seeEmailCc($cc, Swift_Message $message = null) |
| 114 | 114 | { |
| 115 | 115 | $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
| 116 | - ->getCc(), "No email was cc'ed to $cc."); |
|
| 116 | + ->getCc(), "No email was cc'ed to $cc."); |
|
| 117 | 117 | |
| 118 | 118 | return $this; |
| 119 | 119 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | protected function seeEmailContains($excerpt, Swift_Message $message = null) |
| 130 | 130 | { |
| 131 | 131 | $this->assertContains($excerpt, $this->getEmail($message) |
| 132 | - ->getBody(), "No email containing the provided body was found."); |
|
| 132 | + ->getBody(), "No email containing the provided body was found."); |
|
| 133 | 133 | |
| 134 | 134 | return $this; |
| 135 | 135 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | { |
| 179 | 179 | // TODO: Allow from to be an array to check email & name |
| 180 | 180 | $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
| 181 | - ->getFrom(), "No email was sent from $sender."); |
|
| 181 | + ->getFrom(), "No email was sent from $sender."); |
|
| 182 | 182 | |
| 183 | 183 | return $this; |
| 184 | 184 | } |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | { |
| 228 | 228 | // TODO: Consider a subject contains like the message contains |
| 229 | 229 | $this->assertEquals($subject, $this->getEmail($message) |
| 230 | - ->getSubject(), "No email with a subject of $subject was found."); |
|
| 230 | + ->getSubject(), "No email with a subject of $subject was found."); |
|
| 231 | 231 | |
| 232 | 232 | return $this; |
| 233 | 233 | } |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 244 | 244 | { |
| 245 | 245 | $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
| 246 | - ->getTo(), "No email was sent to $recipient."); |
|
| 246 | + ->getTo(), "No email was sent to $recipient."); |
|
| 247 | 247 | |
| 248 | 248 | return $this; |
| 249 | 249 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | protected function seeEmailBcc($bcc, Swift_Message $message = null) |
| 98 | 98 | { |
| 99 | - $this->assertArrayHasKey($bcc, (array)$this->getEmail($message) |
|
| 99 | + $this->assertArrayHasKey($bcc, (array) $this->getEmail($message) |
|
| 100 | 100 | ->getBcc(), "No email was bcc'ed to $bcc."); |
| 101 | 101 | |
| 102 | 102 | return $this; |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | protected function seeEmailCc($cc, Swift_Message $message = null) |
| 114 | 114 | { |
| 115 | - $this->assertArrayHasKey($cc, (array)$this->getEmail($message) |
|
| 115 | + $this->assertArrayHasKey($cc, (array) $this->getEmail($message) |
|
| 116 | 116 | ->getCc(), "No email was cc'ed to $cc."); |
| 117 | 117 | |
| 118 | 118 | return $this; |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | protected function seeEmailFrom($sender, Swift_Message $message = null) |
| 178 | 178 | { |
| 179 | 179 | // TODO: Allow from to be an array to check email & name |
| 180 | - $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
|
| 180 | + $this->assertArrayHasKey($sender, (array) $this->getEmail($message) |
|
| 181 | 181 | ->getFrom(), "No email was sent from $sender."); |
| 182 | 182 | |
| 183 | 183 | return $this; |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | */ |
| 194 | 194 | protected function seeEmailReplyTo($reply_to, Swift_Message $message = null) |
| 195 | 195 | { |
| 196 | - $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
|
| 196 | + $this->assertArrayHasKey($reply_to, (array) $this->getEmail($message) |
|
| 197 | 197 | ->getReplyTo(), "No email was set to reply to $reply_to."); |
| 198 | 198 | |
| 199 | 199 | return $this; |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | */ |
| 243 | 243 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 244 | 244 | { |
| 245 | - $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
|
| 245 | + $this->assertArrayHasKey($recipient, (array) $this->getEmail($message) |
|
| 246 | 246 | ->getTo(), "No email was sent to $recipient."); |
| 247 | 247 | |
| 248 | 248 | return $this; |