@@ -118,8 +118,12 @@ public function recordMail(Swift_Message $email)
118118 */
119119 protected function seeEmailBcc ($ bcc , Swift_Message $ message = null )
120120 {
121- $ this ->assertArrayHasKey ($ bcc , (array )$ this ->getEmail ($ message )
122- ->getBcc (), "The last email sent was not bcc'ed to $ bcc. " );
121+ $ this ->assertArrayHasKey (
122+ $ bcc ,
123+ (array )$ this ->getEmail ($ message )
124+ ->getBcc (),
125+ "The last email sent was not bcc'ed to $ bcc. "
126+ );
123127
124128 return $ this ;
125129 }
@@ -134,8 +138,12 @@ protected function seeEmailBcc($bcc, Swift_Message $message = null)
134138 */
135139 protected function seeEmailCc ($ cc , Swift_Message $ message = null )
136140 {
137- $ this ->assertArrayHasKey ($ cc , (array )$ this ->getEmail ($ message )
138- ->getCc (), "The last email sent was not cc'ed to $ cc. " );
141+ $ this ->assertArrayHasKey (
142+ $ cc ,
143+ (array )$ this ->getEmail ($ message )
144+ ->getCc (),
145+ "The last email sent was not cc'ed to $ cc. "
146+ );
139147
140148 return $ this ;
141149 }
@@ -150,8 +158,12 @@ protected function seeEmailCc($cc, Swift_Message $message = null)
150158 */
151159 protected function seeEmailContains ($ excerpt , Swift_Message $ message = null )
152160 {
153- $ this ->assertStringContainsString ($ excerpt , $ this ->getEmail ($ message )
154- ->getBody (), "The last email sent did not contain the provided body. " );
161+ $ this ->assertStringContainsString (
162+ $ excerpt ,
163+ $ this ->getEmail ($ message )
164+ ->getBody (),
165+ "The last email sent did not contain the provided body. "
166+ );
155167
156168 return $ this ;
157169 }
@@ -167,9 +179,12 @@ protected function seeEmailContains($excerpt, Swift_Message $message = null)
167179 */
168180 protected function seeEmailContentTypeEquals ($ content_type , Swift_Message $ message = null )
169181 {
170- $ this ->assertEquals ($ content_type , $ this ->getEmail ($ message )
171- ->getContentType (),
172- "The last email sent did not contain the provided body. " );
182+ $ this ->assertEquals (
183+ $ content_type ,
184+ $ this ->getEmail ($ message )
185+ ->getContentType (),
186+ "The last email sent did not contain the provided body. "
187+ );
173188
174189 return $ this ;
175190 }
@@ -184,8 +199,12 @@ protected function seeEmailContentTypeEquals($content_type, Swift_Message $messa
184199 */
185200 protected function seeEmailDoesNotContain ($ excerpt , Swift_Message $ message = null )
186201 {
187- $ this ->assertStringNotContainsString ($ excerpt , $ this ->getEmail ($ message )
188- ->getBody (), "The last email sent contained the provided text in its body. " );
202+ $ this ->assertStringNotContainsString (
203+ $ excerpt ,
204+ $ this ->getEmail ($ message )
205+ ->getBody (),
206+ "The last email sent contained the provided text in its body. "
207+ );
189208
190209 return $ this ;
191210 }
@@ -200,8 +219,12 @@ protected function seeEmailDoesNotContain($excerpt, Swift_Message $message = nul
200219 */
201220 protected function seeEmailEquals ($ body , Swift_Message $ message = null )
202221 {
203- $ this ->assertEquals ($ body , $ this ->getEmail ($ message )
204- ->getBody (), "The last email sent did not match the given email. " );
222+ $ this ->assertEquals (
223+ $ body ,
224+ $ this ->getEmail ($ message )
225+ ->getBody (),
226+ "The last email sent did not match the given email. "
227+ );
205228
206229 return $ this ;
207230 }
@@ -217,8 +240,12 @@ protected function seeEmailEquals($body, Swift_Message $message = null)
217240 protected function seeEmailFrom ($ sender , Swift_Message $ message = null )
218241 {
219242 // TODO: Allow from to be an array to check email & name
220- $ this ->assertArrayHasKey ($ sender , (array )$ this ->getEmail ($ message )
221- ->getFrom (), "The last email sent was not sent from $ sender. " );
243+ $ this ->assertArrayHasKey (
244+ $ sender ,
245+ (array )$ this ->getEmail ($ message )
246+ ->getFrom (),
247+ "The last email sent was not sent from $ sender. "
248+ );
222249
223250 return $ this ;
224251 }
@@ -237,8 +264,11 @@ protected function seeEmailPriorityEquals($priority, Swift_Message $message = nu
237264 $ actual_priority = $ this ->getEmail ($ message )
238265 ->getPriority ();
239266
240- $ this ->assertEquals ($ priority , $ actual_priority ,
241- "The last email sent had a priority of $ actual_priority but expected $ priority. " );
267+ $ this ->assertEquals (
268+ $ priority ,
269+ $ actual_priority ,
270+ "The last email sent had a priority of $ actual_priority but expected $ priority. "
271+ );
242272
243273 return $ this ;
244274 }
@@ -253,9 +283,12 @@ protected function seeEmailPriorityEquals($priority, Swift_Message $message = nu
253283 */
254284 protected function seeEmailReplyTo ($ reply_to , Swift_Message $ message = null )
255285 {
256- $ this ->assertArrayHasKey ($ reply_to , (array )$ this ->getEmail ($ message )
257- ->getReplyTo (),
258- "The last email sent was not set to reply to $ reply_to. " );
286+ $ this ->assertArrayHasKey (
287+ $ reply_to ,
288+ (array )$ this ->getEmail ($ message )
289+ ->getReplyTo (),
290+ "The last email sent was not set to reply to $ reply_to. "
291+ );
259292
260293 return $ this ;
261294 }
@@ -313,8 +346,12 @@ protected function seeEmailSubject($subject, Swift_Message $message = null)
313346 */
314347 protected function seeEmailSubjectContains ($ excerpt , Swift_Message $ message = null )
315348 {
316- $ this ->assertStringContainsString ($ excerpt , $ this ->getEmail ($ message )
317- ->getSubject (), "The last email sent did not contain the provided subject. " );
349+ $ this ->assertStringContainsString (
350+ $ excerpt ,
351+ $ this ->getEmail ($ message )
352+ ->getSubject (),
353+ "The last email sent did not contain the provided subject. "
354+ );
318355
319356 return $ this ;
320357 }
@@ -329,8 +366,12 @@ protected function seeEmailSubjectContains($excerpt, Swift_Message $message = nu
329366 */
330367 protected function seeEmailSubjectDoesNotContain ($ excerpt , Swift_Message $ message = null )
331368 {
332- $ this ->assertStringNotContainsString ($ excerpt , $ this ->getEmail ($ message )
333- ->getSubject (), "The last email sent contained the provided text in its subject. " );
369+ $ this ->assertStringNotContainsString (
370+ $ excerpt ,
371+ $ this ->getEmail ($ message )
372+ ->getSubject (),
373+ "The last email sent contained the provided text in its subject. "
374+ );
334375
335376 return $ this ;
336377 }
@@ -345,8 +386,12 @@ protected function seeEmailSubjectDoesNotContain($excerpt, Swift_Message $messag
345386 */
346387 protected function seeEmailSubjectEquals ($ subject , Swift_Message $ message = null )
347388 {
348- $ this ->assertEquals ($ subject , $ this ->getEmail ($ message )
349- ->getSubject (), "The last email sent did not contain a subject of $ subject. " );
389+ $ this ->assertEquals (
390+ $ subject ,
391+ $ this ->getEmail ($ message )
392+ ->getSubject (),
393+ "The last email sent did not contain a subject of $ subject. "
394+ );
350395
351396 return $ this ;
352397 }
@@ -361,8 +406,12 @@ protected function seeEmailSubjectEquals($subject, Swift_Message $message = null
361406 */
362407 protected function seeEmailTo ($ recipient , Swift_Message $ message = null )
363408 {
364- $ this ->assertArrayHasKey ($ recipient , (array )$ this ->getEmail ($ message )
365- ->getTo (), "The last email sent was not sent to $ recipient. " );
409+ $ this ->assertArrayHasKey (
410+ $ recipient ,
411+ (array )$ this ->getEmail ($ message )
412+ ->getTo (),
413+ "The last email sent was not sent to $ recipient. "
414+ );
366415
367416 return $ this ;
368417 }
0 commit comments