Author: Derick Rethans Date: 2006-01-15 16:28:47 +0100 (Sun, 15 Jan 2006) New Revision: 1864
Log: - Fixed Mail tests due to user agent change - Fixed error message in exception so that it actually substitutes the server Host and Port. Modified: packages/Mail/trunk/src/transports/transport_smtp.php packages/Mail/trunk/tests/mail_test.php Modified: packages/Mail/trunk/src/transports/transport_smtp.php =================================================================== --- packages/Mail/trunk/src/transports/transport_smtp.php 2006-01-15 15:04:19 UTC (rev 1863) +++ packages/Mail/trunk/src/transports/transport_smtp.php 2006-01-15 15:28:47 UTC (rev 1864) @@ -298,7 +298,7 @@ } else { - throw new ezcMailTransportSmtpException( 'Failed to connect to the smtp server: {$this->serverHost}:{$this->serverPort}.' ); + throw new ezcMailTransportSmtpException( "Failed to connect to the smtp server: {$this->serverHost}:{$this->serverPort}." ); } } Modified: packages/Mail/trunk/tests/mail_test.php =================================================================== --- packages/Mail/trunk/tests/mail_test.php 2006-01-15 15:04:19 UTC (rev 1863) +++ packages/Mail/trunk/tests/mail_test.php 2006-01-15 15:28:47 UTC (rev 1864) @@ -67,7 +67,7 @@ "Bcc: [EMAIL PROTECTED]" . ezcMailTools::lineBreak() . "Subject: " . ezcMailTools::lineBreak() . "MIME-Version: 1.0" . ezcMailTools::lineBreak() . - "User-Agent: eZ publish Components"; + "User-Agent: eZ components"; $return = $this->mail->generate(); // cut away the Date and Message-ID headers as there is no way to predict what they will be @@ -87,7 +87,7 @@ "To: Frederik Holljen <[EMAIL PROTECTED]>" . ezcMailTools::lineBreak() . "Subject: =?ISO-8859-1?B?RPh0dGUgZXIgZW4gdGVzdA==?=" . ezcMailTools::lineBreak() . "MIME-Version: 1.0" . ezcMailTools::lineBreak() . - "User-Agent: eZ publish Components"; + "User-Agent: eZ components"; $return = $this->mail->generate(); // cut away the Date and Message-ID headers as there is no way to predict what they will be @@ -111,7 +111,7 @@ "Bcc: =?ISO-8859-1?B?RnLmZGVyaWsgSPhsbGplbg==?= <[EMAIL PROTECTED]>" . ezcMailTools::lineBreak() . "Subject: =?ISO-8859-1?B?RPh0dGUgZXIgZW4gdGVzdA==?=" . ezcMailTools::lineBreak() . "MIME-Version: 1.0" . ezcMailTools::lineBreak() . - "User-Agent: eZ publish Components"; + "User-Agent: eZ components"; $return = $this->mail->generate(); // cut away the Date and Message-ID headers as there is no way to predict what they will be -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components