update v 1.0.7.5
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
|
||||
class Swift_Bug274Test extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testEmptyFileNameAsAttachement()
|
||||
public function testEmptyFileNameAsAttachment()
|
||||
{
|
||||
$message = new Swift_Message();
|
||||
$this->setExpectedException('Swift_IoException', 'The path cannot be empty');
|
||||
$message->attach(Swift_Attachment::fromPath(''));
|
||||
}
|
||||
|
||||
public function testNonEmptyFileNameAsAttachement()
|
||||
public function testNonEmptyFileNameAsAttachment()
|
||||
{
|
||||
$message = new Swift_Message();
|
||||
try {
|
||||
|
||||
@@ -60,8 +60,8 @@ class Swift_Bug34Test extends \PHPUnit_Framework_TestCase
|
||||
'--\\1'."\r\n".
|
||||
'Content-Type: image/gif; name=image.gif'."\r\n".
|
||||
'Content-Transfer-Encoding: base64'."\r\n".
|
||||
'Content-Disposition: inline; filename=image.gif'."\r\n".
|
||||
'Content-ID: <'.$cidVal.'>'."\r\n".
|
||||
'Content-Disposition: inline; filename=image.gif'."\r\n".
|
||||
"\r\n".
|
||||
preg_quote(base64_encode('<image data>'), '~').
|
||||
"\r\n\r\n".
|
||||
|
||||
@@ -57,8 +57,8 @@ class Swift_Bug38Test extends \PHPUnit_Framework_TestCase
|
||||
'--'.$boundary."\r\n".
|
||||
'Content-Type: image/gif; name=image.gif'."\r\n".
|
||||
'Content-Transfer-Encoding: base64'."\r\n".
|
||||
'Content-Disposition: inline; filename=image.gif'."\r\n".
|
||||
'Content-ID: <'.preg_quote($imgId, '~').'>'."\r\n".
|
||||
'Content-Disposition: inline; filename=image.gif'."\r\n".
|
||||
"\r\n".
|
||||
preg_quote(base64_encode('<data>'), '~').
|
||||
"\r\n\r\n".
|
||||
@@ -106,8 +106,8 @@ class Swift_Bug38Test extends \PHPUnit_Framework_TestCase
|
||||
'--'.$boundary."\r\n".
|
||||
'Content-Type: image/gif; name=image.gif'."\r\n".
|
||||
'Content-Transfer-Encoding: base64'."\r\n".
|
||||
'Content-Disposition: inline; filename=image.gif'."\r\n".
|
||||
'Content-ID: <'.preg_quote($imgId, '~').'>'."\r\n".
|
||||
'Content-Disposition: inline; filename=image.gif'."\r\n".
|
||||
"\r\n".
|
||||
preg_quote(base64_encode('<data>'), '~').
|
||||
"\r\n\r\n".
|
||||
|
||||
19
vendor/swiftmailer/swiftmailer/tests/bug/Swift/BugFileByteStreamConsecutiveReadCallsTest.php
vendored
Normal file
19
vendor/swiftmailer/swiftmailer/tests/bug/Swift/BugFileByteStreamConsecutiveReadCallsTest.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
|
||||
class Swift_FileByteStreamConsecutiveReadCalls extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @test
|
||||
* @expectedException \Swift_IoException
|
||||
*/
|
||||
public function shouldThrowExceptionOnConsecutiveRead()
|
||||
{
|
||||
$fbs = new \Swift_ByteStream_FileByteStream('does not exist');
|
||||
try {
|
||||
$fbs->read(100);
|
||||
} catch (\Swift_IoException $exc) {
|
||||
$fbs->read(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user