diff --git a/tests/integration/SMTPClientCest.php b/tests/integration/SMTPClientCest.php index ffb3fd2..da2abc9 100644 --- a/tests/integration/SMTPClientCest.php +++ b/tests/integration/SMTPClientCest.php @@ -23,7 +23,7 @@ public function sendSMTPMessage(IntegrationTester $I) $quoted_body = quoted_printable_encode("Hey, Bar!\r\n\r\nIt's me! Foo!\r\n\r\nHow you been man?\r\n\r\n.\r\n\r\n.foo!\r\n\r\nhehehe :-)\r\n\r\n"); - $mime_message = << From: blub@test.org @@ -33,7 +33,7 @@ public function sendSMTPMessage(IntegrationTester $I) Content-Transfer-Encoding: quoted-printable {$quoted_body} -MIME; +EOT; $client->sendMail( "from-foo@test.org", diff --git a/tests/integration/SecureSocketCest.php b/tests/integration/SecureSocketCest.php index e9b7d2b..fbca6ae 100644 --- a/tests/integration/SecureSocketCest.php +++ b/tests/integration/SecureSocketCest.php @@ -25,7 +25,7 @@ public function sendSMTPMessageOverSecureSocket(IntegrationTester $I, Scenario $ $quoted_body = quoted_printable_encode("Hey, Bar!\r\n\r\nIt's me! Foo!\r\n\r\nHow you been man?\r\n\r\n.\r\n\r\n.foo!\r\n\r\nhehehe :-)\r\n\r\n"); - $mime_message = << From: blub@test.org @@ -35,7 +35,7 @@ public function sendSMTPMessageOverSecureSocket(IntegrationTester $I, Scenario $ Content-Transfer-Encoding: quoted-printable {$quoted_body} -MIME; +EOT; $client->sendMail( "from-foo@test.org", diff --git a/tests/unit/MIMEWriterCest.php b/tests/unit/MIMEWriterCest.php index b8203f9..1183c02 100644 --- a/tests/unit/MIMEWriterCest.php +++ b/tests/unit/MIMEWriterCest.php @@ -54,7 +54,7 @@ public function writeTextMessage(UnitTester $I) $quoted_body = TestMessageFactory::TEXT_BODY_QUOTED_PRINTABLE; - $expected_mime = << From: blub@test.org @@ -66,7 +66,7 @@ public function writeTextMessage(UnitTester $I) {$quoted_body} -MIME; +EOT; $I->assertSame($expected_mime, $this->toMIME($message)); } @@ -79,7 +79,7 @@ public function writeTextMessageWithAttachment(UnitTester $I) $quoted_body = TestMessageFactory::TEXT_BODY_QUOTED_PRINTABLE; - $expected_mime = << From: blub@test.org, zoink@test.org @@ -103,7 +103,7 @@ public function writeTextMessageWithAttachment(UnitTester $I) {$encoded_attachment} --++++mixed-03e3b4a304d78659f1a3c0a3cea31a4d73f3a426++++-- -MIME; +EOT; $I->assertSame($expected_mime, $this->toMIME($message)); } @@ -114,7 +114,7 @@ public function writeHTMLMessage(UnitTester $I) $quoted_body = TestMessageFactory::HTML_BODY_QUOTED_PRINTABLE; - $expected_mime = << From: blub@test.org @@ -125,7 +125,7 @@ public function writeHTMLMessage(UnitTester $I) {$quoted_body} -MIME; +EOT; $I->assertSame($expected_mime, $this->toMIME($message)); } @@ -138,7 +138,7 @@ public function writeHTMLMessageWithAttachment(UnitTester $I) $quoted_body = TestMessageFactory::HTML_BODY_QUOTED_PRINTABLE; - $expected_mime = << From: blub@test.org @@ -161,7 +161,7 @@ public function writeHTMLMessageWithAttachment(UnitTester $I) {$encoded_attachment} --++++mixed-03e3b4a304d78659f1a3c0a3cea31a4d73f3a426++++-- -MIME; +EOT; $I->assertSame($expected_mime, $this->toMIME($message)); } @@ -173,7 +173,7 @@ public function writeTextAndHTMLMessage(UnitTester $I) $quoted_text = TestMessageFactory::TEXT_BODY_QUOTED_PRINTABLE; $quoted_html = TestMessageFactory::HTML_BODY_QUOTED_PRINTABLE; - $expected_mime = << From: blub@test.org @@ -193,7 +193,7 @@ public function writeTextAndHTMLMessage(UnitTester $I) {$quoted_html} --++++alternative-aaafaf7c286e771e9bd71eacae9f26ae36c9c650++++-- -MIME; +EOT; $I->assertSame($expected_mime, $this->toMIME($message)); } @@ -208,7 +208,7 @@ public function writeTextAndHTMLMessageWithAttachment(UnitTester $I) $quoted_html_body = TestMessageFactory::HTML_BODY_QUOTED_PRINTABLE; - $expected_mime = << From: blub@test.org @@ -240,7 +240,7 @@ public function writeTextAndHTMLMessageWithAttachment(UnitTester $I) {$encoded_attachment} --++++mixed-03e3b4a304d78659f1a3c0a3cea31a4d73f3a426++++-- -MIME; +EOT; $I->assertSame($expected_mime, $this->toMIME($message)); } @@ -258,7 +258,7 @@ public function writeMessageWithMultipleAttachments(UnitTester $I) $quoted_body = TestMessageFactory::TEXT_BODY_QUOTED_PRINTABLE; - $expected_mime = << From: blub@test.org @@ -287,7 +287,7 @@ public function writeMessageWithMultipleAttachments(UnitTester $I) {$encoded_second_attachment} --++++mixed-03e3b4a304d78659f1a3c0a3cea31a4d73f3a426++++-- -MIME; +EOT; $I->assertSame($expected_mime, $this->toMIME($message)); } @@ -296,7 +296,7 @@ public function writeMessageWithMultipleRecipients(UnitTester $I) { $message = $this->factory->createMessageWithMultipleRecipients(); - $expected_mime = <<, Also Rasmus Schultz From: blub@test.org @@ -307,7 +307,7 @@ public function writeMessageWithMultipleRecipients(UnitTester $I) Hello! -MIME; +EOT; $I->assertSame($expected_mime, $this->toMIME($message)); } @@ -316,7 +316,7 @@ public function writeMessageWithCCAndBCCRecipients(UnitTester $I) { $message = $this->factory->createMessageWithCCAndBCCRecipients(); - $expected_mime = <<assertSame($expected_mime, $this->toMIME($message)); } @@ -337,7 +337,7 @@ public function writeMessageWithCustomHeaders(UnitTester $I) { $message = $this->factory->createMessageWithCustomHeaders(); - $expected_mime = <<assertSame($expected_mime, $this->toMIME($message)); } @@ -362,7 +362,7 @@ public function writeMessageWithInlineAttachment(UnitTester $I) $encoded_message = TestMessageFactory::HTML_BODY_WITH_INLINE_IMAGE_QP; - $expected_mime = <<assertSame($expected_mime, $this->toMIME($message)); } @@ -399,7 +399,7 @@ public function writeMessageWithInlineAttachmentAndTextAlternative(UnitTester $I $encoded_alt_message = TestMessageFactory::TEXT_BODY_QUOTED_PRINTABLE; - $expected_mime = <<assertSame($expected_mime, $this->toMIME($message)); } @@ -445,7 +445,7 @@ public function writeMessageWithInlineAndRegularAttachments(UnitTester $I) $encoded_attachment = TestMessageFactory::TEXT_BODY_BASE64; - $expected_mime = <<assertSame($expected_mime, $this->toMIME($message)); } @@ -496,7 +496,7 @@ public function writeMessageWithInlineAndRegularAttachmentsAndTextAlternative(Un $encoded_alt_message = TestMessageFactory::TEXT_BODY_QUOTED_PRINTABLE; - $expected_mime = <<assertSame($expected_mime, $this->toMIME($message)); }