> Modified: trunk/Mail/tests/mail_test.php
> ===========================================================================
>=== --- trunk/Mail/tests/mail_test.php [iso-8859-1] (original)
> +++ trunk/Mail/tests/mail_test.php [iso-8859-1] Fri Jul 27 13:18:58 2007
> @@ -340,6 +340,24 @@
> $this->mail->messageID = "<[EMAIL PROTECTED]>";
> $this->mail->generateHeaders();
> $this->assertEquals( '<[EMAIL PROTECTED]>',
> $this->mail->getHeader( 'Message-Id' ) ); + }
> +
> + // test for issue #11174
> + public function testMailHeaderFolding76Char()
> + {
> + $mail = new ezcMail();
> + $mail->from = new ezcMailAddress( '[EMAIL PROTECTED]', 'John Doe'
> ); + $mail->addTo( new ezcMailAddress( '[EMAIL PROTECTED]', 'John
> Doe' ) ); + $mail->body = new ezcMailText( 'Text' );
> +
> + // test some subject sizes
> + for ( $i = 1; $i < 300; $i++ )
> + {
> + $mail->subject = str_repeat( '1', $i );
> + $source = $mail->generate();
> + preg_match( '/Subject:\s[0-9]+/', $source, $matches );
> + $this->assertEquals( 1, count( $matches ), "Subject is folded
> incorrectly for length {$i}." ); + }
> }
>
> public function testMailAddressToString()
<noirony>
Hehehe, I like your brute force testing style Alex :D
</noirony>
Cheers,
Frederik
--
svn-components mailing list
[EMAIL PROTECTED]
http://lists.ez.no/mailman/listinfo/svn-components