@@ -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; |
@@ -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(), "The last email sent was not bcc'ed to $bcc."); |
|
| 100 | + ->getBcc(), "The last email sent was not 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(), "The last email sent was not cc'ed to $cc."); |
|
| 116 | + ->getCc(), "The last email sent was not 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(), "The last email sent did not contain the provided body."); |
|
| 132 | + ->getBody(), "The last email sent did not contain the provided body."); |
|
| 133 | 133 | |
| 134 | 134 | return $this; |
| 135 | 135 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | { |
| 147 | 147 | $this->assertNotContains($excerpt, $this->getEmail($message) |
| 148 | 148 | ->getBody(), |
| 149 | - "The last email sent contained the provided text in its body."); |
|
| 149 | + "The last email sent contained the provided text in its body."); |
|
| 150 | 150 | |
| 151 | 151 | return $this; |
| 152 | 152 | } |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | { |
| 180 | 180 | // TODO: Allow from to be an array to check email & name |
| 181 | 181 | $this->assertArrayHasKey($sender, (array)$this->getEmail($message) |
| 182 | - ->getFrom(), "The last email sent was not sent from $sender."); |
|
| 182 | + ->getFrom(), "The last email sent was not sent from $sender."); |
|
| 183 | 183 | |
| 184 | 184 | return $this; |
| 185 | 185 | } |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | { |
| 197 | 197 | $this->assertArrayHasKey($reply_to, (array)$this->getEmail($message) |
| 198 | 198 | ->getReplyTo(), |
| 199 | - "The last email sent was not set to reply to $reply_to."); |
|
| 199 | + "The last email sent was not set to reply to $reply_to."); |
|
| 200 | 200 | |
| 201 | 201 | return $this; |
| 202 | 202 | } |
@@ -242,8 +242,8 @@ discard block |
||
| 242 | 242 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
| 243 | 243 | { |
| 244 | 244 | $this->assertContains($excerpt, $this->getEmail($message) |
| 245 | - ->getSubject(), |
|
| 246 | - "The last email sent did not contain the provided subject."); |
|
| 245 | + ->getSubject(), |
|
| 246 | + "The last email sent did not contain the provided subject."); |
|
| 247 | 247 | |
| 248 | 248 | return $this; |
| 249 | 249 | } |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | { |
| 261 | 261 | $this->assertNotContains($excerpt, $this->getEmail($message) |
| 262 | 262 | ->getSubject(), |
| 263 | - "The last email sent contained the provided text in its subject."); |
|
| 263 | + "The last email sent contained the provided text in its subject."); |
|
| 264 | 264 | |
| 265 | 265 | return $this; |
| 266 | 266 | } |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | protected function seeEmailSubjectEquals($subject, Swift_Message $message = null) |
| 277 | 277 | { |
| 278 | 278 | $this->assertEquals($subject, $this->getEmail($message) |
| 279 | - ->getSubject(), |
|
| 279 | + ->getSubject(), |
|
| 280 | 280 | "The last email sent did not contain a subject of $subject."); |
| 281 | 281 | |
| 282 | 282 | return $this; |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 294 | 294 | { |
| 295 | 295 | $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
| 296 | - ->getTo(), "The last email sent was not sent to $recipient."); |
|
| 296 | + ->getTo(), "The last email sent was not sent to $recipient."); |
|
| 297 | 297 | |
| 298 | 298 | return $this; |
| 299 | 299 | } |
@@ -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 | { |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * @param string $content_type |
| 142 | 142 | * @param Swift_Message|null $message |
| 143 | 143 | * |
| 144 | - * @return PHPUnit_Framework_TestCase $this |
|
| 144 | + * @return MailTracking $this |
|
| 145 | 145 | */ |
| 146 | 146 | protected function seeEmailContentTypeEquals($content_type, Swift_Message $message = null) |
| 147 | 147 | { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * @param string $excerpt |
| 159 | 159 | * @param Swift_Message|null $message |
| 160 | 160 | * |
| 161 | - * @return PHPUnit_Framework_TestCase $this |
|
| 161 | + * @return MailTracking $this |
|
| 162 | 162 | */ |
| 163 | 163 | protected function seeEmailDoesNotContain($excerpt, Swift_Message $message = null) |
| 164 | 164 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param string $body |
| 176 | 176 | * @param Swift_Message|null $message |
| 177 | 177 | * |
| 178 | - * @return PHPUnit_Framework_TestCase $this |
|
| 178 | + * @return MailTracking $this |
|
| 179 | 179 | */ |
| 180 | 180 | protected function seeEmailEquals($body, Swift_Message $message = null) |
| 181 | 181 | { |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * @param string $sender |
| 192 | 192 | * @param Swift_Message|null $message |
| 193 | 193 | * |
| 194 | - * @return PHPUnit_Framework_TestCase $this |
|
| 194 | + * @return MailTracking $this |
|
| 195 | 195 | */ |
| 196 | 196 | protected function seeEmailFrom($sender, Swift_Message $message = null) |
| 197 | 197 | { |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | * @param string $reply_to |
| 209 | 209 | * @param Swift_Message|null $message |
| 210 | 210 | * |
| 211 | - * @return PHPUnit_Framework_TestCase $this |
|
| 211 | + * @return MailTracking $this |
|
| 212 | 212 | */ |
| 213 | 213 | protected function seeEmailReplyTo($reply_to, Swift_Message $message = null) |
| 214 | 214 | { |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | * |
| 225 | 225 | * @param integer $count |
| 226 | 226 | * |
| 227 | - * @return PHPUnit_Framework_TestCase $this |
|
| 227 | + * @return MailTracking $this |
|
| 228 | 228 | * @deprecated in favor of seeEmailCountEquals |
| 229 | 229 | */ |
| 230 | 230 | protected function seeEmailsSent($count) |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * |
| 238 | 238 | * @param integer $count |
| 239 | 239 | * |
| 240 | - * @return PHPUnit_Framework_TestCase $this |
|
| 240 | + * @return MailTracking $this |
|
| 241 | 241 | */ |
| 242 | 242 | protected function seeEmailCountEquals($count) |
| 243 | 243 | { |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | * @param string $subject |
| 255 | 255 | * @param Swift_Message|null $message |
| 256 | 256 | * |
| 257 | - * @return PHPUnit_Framework_TestCase $this |
|
| 257 | + * @return MailTracking $this |
|
| 258 | 258 | * @deprecated in favor of seeEmailSubjectEquals |
| 259 | 259 | */ |
| 260 | 260 | protected function seeEmailSubject($subject, Swift_Message $message = null) |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | * @param string $excerpt |
| 269 | 269 | * @param Swift_Message|null $message |
| 270 | 270 | * |
| 271 | - * @return PHPUnit_Framework_TestCase $this |
|
| 271 | + * @return MailTracking $this |
|
| 272 | 272 | */ |
| 273 | 273 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
| 274 | 274 | { |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | * @param string $excerpt |
| 286 | 286 | * @param Swift_Message|null $message |
| 287 | 287 | * |
| 288 | - * @return PHPUnit_Framework_TestCase $this |
|
| 288 | + * @return MailTracking $this |
|
| 289 | 289 | */ |
| 290 | 290 | protected function seeEmailSubjectDoesNotContain($excerpt, Swift_Message $message = null) |
| 291 | 291 | { |
@@ -302,7 +302,7 @@ discard block |
||
| 302 | 302 | * @param string $subject |
| 303 | 303 | * @param Swift_Message|null $message |
| 304 | 304 | * |
| 305 | - * @return PHPUnit_Framework_TestCase $this |
|
| 305 | + * @return MailTracking $this |
|
| 306 | 306 | */ |
| 307 | 307 | protected function seeEmailSubjectEquals($subject, Swift_Message $message = null) |
| 308 | 308 | { |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | * @param string $recipient |
| 320 | 320 | * @param Swift_Message|null $message |
| 321 | 321 | * |
| 322 | - * @return PHPUnit_Framework_TestCase $this |
|
| 322 | + * @return MailTracking $this |
|
| 323 | 323 | */ |
| 324 | 324 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
| 325 | 325 | { |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | /** |
| 333 | 333 | * Assert that no emails were sent. |
| 334 | 334 | * |
| 335 | - * @return PHPUnit_Framework_TestCase $this |
|
| 335 | + * @return MailTracking $this |
|
| 336 | 336 | */ |
| 337 | 337 | protected function seeEmailWasNotSent() |
| 338 | 338 | { |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | /** |
| 347 | 347 | * Assert that at least one email was sent. |
| 348 | 348 | * |
| 349 | - * @return PHPUnit_Framework_TestCase $this |
|
| 349 | + * @return MailTracking $this |
|
| 350 | 350 | */ |
| 351 | 351 | protected function seeEmailWasSent() |
| 352 | 352 | { |