@@ -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; |
@@ -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 | { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * @param string $body |
158 | 158 | * @param Swift_Message|null $message |
159 | 159 | * |
160 | - * @return PHPUnit_Framework_TestCase $this |
|
160 | + * @return MailTracking $this |
|
161 | 161 | */ |
162 | 162 | protected function seeEmailEquals($body, Swift_Message $message = null) |
163 | 163 | { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | * @param string $sender |
174 | 174 | * @param Swift_Message|null $message |
175 | 175 | * |
176 | - * @return PHPUnit_Framework_TestCase $this |
|
176 | + * @return MailTracking $this |
|
177 | 177 | */ |
178 | 178 | protected function seeEmailFrom($sender, Swift_Message $message = null) |
179 | 179 | { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | * @param string $reply_to |
191 | 191 | * @param Swift_Message|null $message |
192 | 192 | * |
193 | - * @return PHPUnit_Framework_TestCase $this |
|
193 | + * @return MailTracking $this |
|
194 | 194 | */ |
195 | 195 | protected function seeEmailReplyTo($reply_to, Swift_Message $message = null) |
196 | 196 | { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * |
207 | 207 | * @param integer $count |
208 | 208 | * |
209 | - * @return PHPUnit_Framework_TestCase $this |
|
209 | + * @return MailTracking $this |
|
210 | 210 | */ |
211 | 211 | protected function seeEmailsSent($count) |
212 | 212 | { |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * @param string $subject |
224 | 224 | * @param Swift_Message|null $message |
225 | 225 | * |
226 | - * @return PHPUnit_Framework_TestCase $this |
|
226 | + * @return MailTracking $this |
|
227 | 227 | */ |
228 | 228 | protected function seeEmailSubject($subject, Swift_Message $message = null) |
229 | 229 | { |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | * @param string $excerpt |
241 | 241 | * @param Swift_Message|null $message |
242 | 242 | * |
243 | - * @return PHPUnit_Framework_TestCase $this |
|
243 | + * @return MailTracking $this |
|
244 | 244 | */ |
245 | 245 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
246 | 246 | { |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | * @param string $excerpt |
258 | 258 | * @param Swift_Message|null $message |
259 | 259 | * |
260 | - * @return PHPUnit_Framework_TestCase $this |
|
260 | + * @return MailTracking $this |
|
261 | 261 | */ |
262 | 262 | protected function seeEmailSubjectDoesNotContain($excerpt, Swift_Message $message = null) |
263 | 263 | { |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | * @param string $recipient |
275 | 275 | * @param Swift_Message|null $message |
276 | 276 | * |
277 | - * @return PHPUnit_Framework_TestCase $this |
|
277 | + * @return MailTracking $this |
|
278 | 278 | */ |
279 | 279 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
280 | 280 | { |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | /** |
288 | 288 | * Assert that no emails were sent. |
289 | 289 | * |
290 | - * @return PHPUnit_Framework_TestCase $this |
|
290 | + * @return MailTracking $this |
|
291 | 291 | */ |
292 | 292 | protected function seeEmailWasNotSent() |
293 | 293 | { |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | /** |
302 | 302 | * Assert that at least one email was sent. |
303 | 303 | * |
304 | - * @return PHPUnit_Framework_TestCase $this |
|
304 | + * @return MailTracking $this |
|
305 | 305 | */ |
306 | 306 | protected function seeEmailWasSent() |
307 | 307 | { |
@@ -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 | } |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | protected function seeEmailSubject($subject, Swift_Message $message = null) |
229 | 229 | { |
230 | 230 | $this->assertEquals($subject, $this->getEmail($message) |
231 | - ->getSubject(), |
|
231 | + ->getSubject(), |
|
232 | 232 | "The last email sent did not contain a subject of $subject."); |
233 | 233 | |
234 | 234 | return $this; |
@@ -245,8 +245,8 @@ discard block |
||
245 | 245 | protected function seeEmailSubjectContains($excerpt, Swift_Message $message = null) |
246 | 246 | { |
247 | 247 | $this->assertContains($excerpt, $this->getEmail($message) |
248 | - ->getSubject(), |
|
249 | - "The last email sent did not contain the provided subject."); |
|
248 | + ->getSubject(), |
|
249 | + "The last email sent did not contain the provided subject."); |
|
250 | 250 | |
251 | 251 | return $this; |
252 | 252 | } |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | { |
264 | 264 | $this->assertNotContains($excerpt, $this->getEmail($message) |
265 | 265 | ->getSubject(), |
266 | - "The last email sent contained the provided text in its subject."); |
|
266 | + "The last email sent contained the provided text in its subject."); |
|
267 | 267 | |
268 | 268 | return $this; |
269 | 269 | } |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | protected function seeEmailTo($recipient, Swift_Message $message = null) |
280 | 280 | { |
281 | 281 | $this->assertArrayHasKey($recipient, (array)$this->getEmail($message) |
282 | - ->getTo(), "The last email sent was not sent to $recipient."); |
|
282 | + ->getTo(), "The last email sent was not sent to $recipient."); |
|
283 | 283 | |
284 | 284 | return $this; |
285 | 285 | } |