-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
176 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- nightly | ||
- hhvm | ||
|
||
matrix: | ||
allow_failures: | ||
- php: nightly | ||
- php: hhvm | ||
|
||
before_script: | ||
- composer self-update | ||
- composer update | ||
|
||
script: | ||
- phpunit | ||
- vendor/bin/phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -410,7 +410,7 @@ public function testMailHtmlWithImagesNoExtensionWithFileInfo() | |
$this->mail->addTo( new ezcMailAddress( '[email protected]', 'Frederik Holljen' ) ); | ||
$this->mail->subject = "HTML message with embeded files and images."; | ||
$this->mail->htmlText = "<html>Some text before the simage: <img src=\"file://" | ||
. realpath( $fileName ) . " />Here is some text after the image. Here is the <a href=\"file://" | ||
. realpath( $fileName ) . "\" />Here is some text after the image. Here is the <a href=\"file://" | ||
. dirname( __FILE__ ) | ||
. "/parts/data/fly.jpg\">file.</a></html>"; | ||
$this->mail->addAttachment( dirname( __FILE__) . "/parts/data/fly.jpg" ); | ||
|
@@ -733,7 +733,7 @@ public function testContentDispositionCustomAttachmentName() | |
$contentType = 'application/octet-stream'; | ||
} | ||
|
||
$this->assertEquals( $contentType . '; name="custom_attachment_name.jpg"', $parts[1]->getHeader( "Content-Type" ) ); | ||
$this->assertEquals( $contentType . '; charset=binary; name="custom_attachment_name.jpg"', $parts[1]->getHeader( "Content-Type" ) ); | ||
$this->assertEquals( $file->contentDisposition, $parts[1]->contentDisposition ); | ||
} | ||
|
||
|
@@ -908,7 +908,7 @@ public function testMailSafeModeComposerAutomaticImageIncludeDefault() | |
$this->mail->subject = "HTML message with embeded files and images."; | ||
$this->mail->htmlText = "<html>Some text before the simage: <img src=\"file://" . dirname( __FILE__ ) . "/parts/data/fly.jpg\" /> Here is the picture."; | ||
$this->mail->build(); | ||
$this->assertEquals( true, 62701 <= strlen( $this->mail->generate() ) && strlen( $this->mail->generate() ) <= 62733 ); | ||
$this->assertEquals( true, 62701 <= strlen( $this->mail->generate() ) && strlen( $this->mail->generate() ) <= 62740 ); | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -323,9 +323,8 @@ public function testMessageID1() | |
$this->mail->addTo( new ezcMailAddress( '[email protected]', 'Frederik Holljen' ) ); | ||
$this->mail->subject = "æøå"; | ||
$this->mail->body = new ezcMailText( "Dette er body ßßæøååå" ); | ||
|
||
$this->mail->generateHeaders(); | ||
$expected = '<'. date( 'YmdGHjs' ) . '.' . getmypid() . '.7@ez.no>'; | ||
$expected = '<'. date( 'YmdGHjs' ) . '.' . getmypid() . '.60@ez.no>'; | ||
$this->assertEquals( $expected, $this->mail->getHeader( 'Message-Id' ) ); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
tests/parser/data/various/attachment_only_horizontal_tab_in_filename.mail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Return-Path: <[email protected]> | ||
X-Original-To: [email protected] | ||
Delivered-To: [email protected] | ||
Received: from smtp.ez.no (blackboy.ez.no [194.248.150.22]) | ||
by mta1.ez.no (Postfix) with ESMTP id 99508362508 | ||
for <[email protected]>; Fri, 23 Nov 2007 13:29:23 +0100 (CET) | ||
Received: from [10.0.2.184] (popeye.ez.no [85.19.74.66]) | ||
by smtp.ez.no (Postfix) with ESMTP id D611AAB54C | ||
for <[email protected]>; Fri, 23 Nov 2007 13:26:40 +0100 (CET) | ||
Message-ID: <[email protected]> | ||
Date: Fri, 23 Nov 2007 13:30:14 +0100 | ||
From: Alexandru Stanoi <[email protected]> | ||
User-Agent: Thunderbird 1.5.0.12 (X11/20070604) | ||
MIME-Version: 1.0 | ||
To: Alexandru Stanoi <[email protected]> | ||
Subject: TEST: HTML attachment | ||
Content-Type: multipart/mixed; | ||
boundary="1234567890" | ||
|
||
|
||
--1234567890 | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Transfer-Encoding: 7bit | ||
|
||
<html> | ||
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" | ||
bgcolor="#FFFFFF"> | ||
<table border="0" width="640" cellspacing="0" cellpadding="0"><tr><td> | ||
<img src="cid:cam_data/photo067" alt="cam_data/photo067.jpg"><br><br> | ||
</td></tr></table> | ||
</body></html> | ||
|
||
--1234567890 | ||
Content-Type: image/jpeg; name="" | ||
Content-Transfer-Encoding: base64 | ||
Content-ID: <cam_data/photo067> | ||
Content-Disposition: attachment; filename=" " | ||
|
||
/9j/4AAQSkZJRgABAgEAkACQAAD/ | ||
2wCEAAwICQoJBwwKCQoNDAwOER0TERAQESQZGxUdKiUsLCkl | ||
KSgvNEM5LzE/ | ||
MigpOk87P0VHS0xLLThSWFFJV0NJS0gBDA0NEQ8RIhMTIkgwKTBISEhISEhISEhI | ||
SEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISP/ | ||
AABEIAPABQAMBIQACEQED | ||
EQH/3QAEABT/ | ||
xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAAB | ||
fQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5 | ||
OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeo | ||
qaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/ | ||
j5+gEAAwEBAQEB | ||
AQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIy | ||
gQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNk | ||
ZWZnaG | ||
|
||
--1234567890-- |
55 changes: 55 additions & 0 deletions
55
tests/parser/data/various/attachment_with_long_filename.mail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Return-Path: <[email protected]> | ||
X-Original-To: [email protected] | ||
Delivered-To: [email protected] | ||
Received: from smtp.ez.no (blackboy.ez.no [194.248.150.22]) | ||
by mta1.ez.no (Postfix) with ESMTP id 99508362508 | ||
for <[email protected]>; Fri, 23 Nov 2007 13:29:23 +0100 (CET) | ||
Received: from [10.0.2.184] (popeye.ez.no [85.19.74.66]) | ||
by smtp.ez.no (Postfix) with ESMTP id D611AAB54C | ||
for <[email protected]>; Fri, 23 Nov 2007 13:26:40 +0100 (CET) | ||
Message-ID: <[email protected]> | ||
Date: Fri, 23 Nov 2007 13:30:14 +0100 | ||
From: Alexandru Stanoi <[email protected]> | ||
User-Agent: Thunderbird 1.5.0.12 (X11/20070604) | ||
MIME-Version: 1.0 | ||
To: Alexandru Stanoi <[email protected]> | ||
Subject: TEST: HTML attachment | ||
Content-Type: multipart/mixed; | ||
boundary="1234567890" | ||
|
||
|
||
--1234567890 | ||
Content-Type: text/html; charset=iso-8859-1 | ||
Content-Transfer-Encoding: 7bit | ||
|
||
<html> | ||
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" | ||
bgcolor="#FFFFFF"> | ||
<table border="0" width="640" cellspacing="0" cellpadding="0"><tr><td> | ||
<img src="cid:cam_data/photo067" alt="cam_data/photo067.jpg"><br><br> | ||
</td></tr></table> | ||
</body></html> | ||
|
||
--1234567890 | ||
Content-Type: image/jpeg; name="" | ||
Content-Transfer-Encoding: base64 | ||
Content-ID: <cam_data/photo067> | ||
Content-Disposition: attachment; filename="SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_SOMETHINGVERYLONG_.jpg" | ||
|
||
/9j/4AAQSkZJRgABAgEAkACQAAD/ | ||
2wCEAAwICQoJBwwKCQoNDAwOER0TERAQESQZGxUdKiUsLCkl | ||
KSgvNEM5LzE/ | ||
MigpOk87P0VHS0xLLThSWFFJV0NJS0gBDA0NEQ8RIhMTIkgwKTBISEhISEhISEhI | ||
SEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISP/ | ||
AABEIAPABQAMBIQACEQED | ||
EQH/3QAEABT/ | ||
xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAAB | ||
fQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5 | ||
OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeo | ||
qaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/ | ||
j5+gEAAwEBAQEB | ||
AQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIy | ||
gQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNk | ||
ZWZnaG | ||
|
||
--1234567890-- |
Oops, something went wrong.