%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/water/vendor/swiftmailer/swiftmailer/tests/acceptance/Swift/ |
Upload File : |
<?php require_once 'swift_required.php'; require_once __DIR__.'/Mime/SimpleMessageAcceptanceTest.php'; class Swift_MessageAcceptanceTest extends Swift_Mime_SimpleMessageAcceptanceTest { public function testAddPartWrapper() { $message = $this->createMessage(); $message->setSubject('just a test subject'); $message->setFrom([ 'chris.corbyn@swiftmailer.org' => 'Chris Corbyn', ]); $id = $message->getId(); $date = $message->getDate(); $boundary = $message->getBoundary(); $message->addPart('foo', 'text/plain', 'iso-8859-1'); $message->addPart('test <b>foo</b>', 'text/html', 'iso-8859-1'); $this->assertEquals( 'Message-ID: <'.$id.'>'."\r\n". 'Date: '.$date->format('r')."\r\n". 'Subject: just a test subject'."\r\n". 'From: Chris Corbyn <chris.corbyn@swiftmailer.org>'."\r\n". 'MIME-Version: 1.0'."\r\n". 'Content-Type: multipart/alternative;'."\r\n". ' boundary="'.$boundary.'"'."\r\n". "\r\n\r\n". '--'.$boundary."\r\n". 'Content-Type: text/plain; charset=iso-8859-1'."\r\n". 'Content-Transfer-Encoding: quoted-printable'."\r\n". "\r\n". 'foo'. "\r\n\r\n". '--'.$boundary."\r\n". 'Content-Type: text/html; charset=iso-8859-1'."\r\n". 'Content-Transfer-Encoding: quoted-printable'."\r\n". "\r\n". 'test <b>foo</b>'. "\r\n\r\n". '--'.$boundary.'--'."\r\n", $message->toString() ); } protected function createMessage() { Swift_DependencyContainer::getInstance() ->register('properties.charset')->asValue(null); return new Swift_Message(); } }