@@ -251,70 +251,70 @@ public function testGenerateBody()
251251 $ att = new DataPart ($ file = fopen (__DIR__ .'/Fixtures/mimetypes/test ' , 'r ' ));
252252 $ img = new DataPart ($ image = fopen (__DIR__ .'/Fixtures/mimetypes/test.gif ' , 'r ' ), 'test.gif ' );
253253
254- $ e = (
new Email ())->
from (
'[email protected] ' );
254+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
255255 $ e ->text ('text content ' );
256256 $ this ->assertEquals ($ text , $ e ->getBody ());
257257 $ this ->assertEquals ('text content ' , $ e ->getTextBody ());
258258
259- $ e = (
new Email ())->
from (
'[email protected] ' );
259+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
260260 $ e ->html ('html content ' );
261261 $ this ->assertEquals ($ html , $ e ->getBody ());
262262 $ this ->assertEquals ('html content ' , $ e ->getHtmlBody ());
263263
264- $ e = (
new Email ())->
from (
'[email protected] ' );
264+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
265265 $ e ->html ('html content ' );
266266 $ e ->text ('text content ' );
267267 $ this ->assertEquals (new AlternativePart ($ text , $ html ), $ e ->getBody ());
268268
269- $ e = (
new Email ())->
from (
'[email protected] ' );
269+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
270270 $ e ->html ('html content ' , 'iso-8859-1 ' );
271271 $ e ->text ('text content ' , 'iso-8859-1 ' );
272272 $ this ->assertEquals ('iso-8859-1 ' , $ e ->getTextCharset ());
273273 $ this ->assertEquals ('iso-8859-1 ' , $ e ->getHtmlCharset ());
274274 $ this ->assertEquals (new AlternativePart (new TextPart ('text content ' , 'iso-8859-1 ' ), new TextPart ('html content ' , 'iso-8859-1 ' , 'html ' )), $ e ->getBody ());
275275
276- $ e = (
new Email ())->
from (
'[email protected] ' );
276+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
277277 $ e ->attach ($ file );
278278 $ e ->text ('text content ' );
279279 $ this ->assertEquals (new MixedPart ($ text , $ att ), $ e ->getBody ());
280280
281- $ e = (
new Email ())->
from (
'[email protected] ' );
281+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
282282 $ e ->attach ($ file );
283283 $ e ->html ('html content ' );
284284 $ this ->assertEquals (new MixedPart ($ html , $ att ), $ e ->getBody ());
285285
286- $ e = (
new Email ())->
from (
'[email protected] ' );
286+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
287287 $ e ->attach ($ file );
288288 $ this ->assertEquals (new MixedPart ($ att ), $ e ->getBody ());
289289
290- $ e = (
new Email ())->
from (
'[email protected] ' );
290+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
291291 $ e ->html ('html content ' );
292292 $ e ->text ('text content ' );
293293 $ e ->attach ($ file );
294294 $ this ->assertEquals (new MixedPart (new AlternativePart ($ text , $ html ), $ att ), $ e ->getBody ());
295295
296- $ e = (
new Email ())->
from (
'[email protected] ' );
296+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
297297 $ e ->html ('html content ' );
298298 $ e ->text ('text content ' );
299299 $ e ->attach ($ file );
300300 $ e ->attach ($ image , 'test.gif ' );
301301 $ this ->assertEquals (new MixedPart (new AlternativePart ($ text , $ html ), $ att , $ img ), $ e ->getBody ());
302302
303- $ e = (
new Email ())->
from (
'[email protected] ' );
303+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
304304 $ e ->text ('text content ' );
305305 $ e ->attach ($ file );
306306 $ e ->attach ($ image , 'test.gif ' );
307307 $ this ->assertEquals (new MixedPart ($ text , $ att , $ img ), $ e ->getBody ());
308308
309- $ e = (
new Email ())->
from (
'[email protected] ' );
309+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
310310 $ e ->html ($ content = 'html content <img src="test.gif"> ' );
311311 $ e ->text ('text content ' );
312312 $ e ->attach ($ file );
313313 $ e ->attach ($ image , 'test.gif ' );
314314 $ fullhtml = new TextPart ($ content , 'utf-8 ' , 'html ' );
315315 $ this ->assertEquals (new MixedPart (new AlternativePart ($ text , $ fullhtml ), $ att , $ img ), $ e ->getBody ());
316316
317- $ e = (
new Email ())->
from (
'[email protected] ' );
317+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
318318 $ e ->html ($ content = 'html content <img src="cid:test.gif"> ' );
319319 $ e ->text ('text content ' );
320320 $ e ->attach ($ file );
@@ -334,7 +334,7 @@ public function testGenerateBody()
334334 fwrite ($ r , $ content );
335335 rewind ($ r );
336336
337- $ e = (
new Email ())->
from (
'[email protected] ' );
337+ $ e = (
new Email ())->
from (
'[email protected] ' )
-> to ( ' [email protected] ' ) ;
338338 $ e ->html ($ r );
339339 // embedding the same image twice results in one image only in the email
340340 $ e ->embed ($ image , 'test.gif ' );
@@ -373,6 +373,7 @@ public function testSerialize()
373373
374374 $ e = new Email ();
375375376+ 376377 $ e ->text ($ r );
377378 $ e ->html ($ r );
378379 $ name = __DIR__ .'/Fixtures/mimetypes/test ' ;
0 commit comments