Skip to content

Commit

Permalink
Applied fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
voku authored and StyleCIBot committed Jun 7, 2016
1 parent 7e0cdbd commit 8e36f3e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions tests/unit/Swift/Mime/AttachmentTest.php
Expand Up @@ -5,7 +5,7 @@ class Swift_Mime_AttachmentTest extends Swift_Mime_AbstractMimeEntityTest
public function testNestingLevelIsAttachment()
{
$attachment = $this->_createAttachment(
$this->_createHeaderSet(),
$this->_createHeaderSet(),
$this->_createEncoder(), $this->_createCache()
);
$this->assertEquals(
Expand Down Expand Up @@ -65,7 +65,7 @@ public function testDispositionIsAutoDefaultedToAttachment()
->zeroOrMoreTimes();

$attachment = $this->_createAttachment(
$headers,
$headers,
$this->_createEncoder(),
$this->_createCache()
);
Expand Down Expand Up @@ -95,7 +95,7 @@ public function testFilenameIsReturnedFromHeader()
*/

$disposition = $this->_createHeader(
'Content-Disposition',
'Content-Disposition',
'attachment',
array('filename' => 'foo.txt')
);
Expand All @@ -109,9 +109,9 @@ public function testFilenameIsReturnedFromHeader()
public function testFilenameIsSetInHeader()
{
$disposition = $this->_createHeader(
'Content-Disposition',
'Content-Disposition',
'attachment',
array('filename' => 'foo.txt'),
array('filename' => 'foo.txt'),
false
);
$disposition->shouldReceive('setParameter')
Expand All @@ -134,9 +134,9 @@ public function testSettingFilenameSetsNameInContentType()
*/

$cType = $this->_createHeader(
'Content-Type',
'Content-Type',
'text/plain',
array(),
array(),
false
);
$cType->shouldReceive('setParameter')
Expand All @@ -146,7 +146,7 @@ public function testSettingFilenameSetsNameInContentType()
->zeroOrMoreTimes();

$attachment = $this->_createAttachment(
$this->_createHeaderSet(array('Content-Type' => $cType, )),
$this->_createHeaderSet(array('Content-Type' => $cType, )),
$this->_createEncoder(), $this->_createCache()
);
$attachment->setFilename('bar.txt');
Expand Down Expand Up @@ -185,9 +185,9 @@ public function testFilnameCanBeReadFromFileStream()
{
$file = $this->_createFileStream('/bar/file.ext', '');
$disposition = $this->_createHeader(
'Content-Disposition',
'Content-Disposition',
'attachment',
array('filename' => 'foo.txt'),
array('filename' => 'foo.txt'),
false
);
$disposition->shouldReceive('setParameter')
Expand All @@ -205,7 +205,7 @@ public function testContentTypeCanBeSetViaSetFile()
{
$file = $this->_createFileStream('/bar/file.ext', '');
$disposition = $this->_createHeader(
'Content-Disposition',
'Content-Disposition',
'attachment',
array('filename' => 'foo.txt'),
false
Expand All @@ -229,7 +229,7 @@ public function testContentTypeCanBeSetViaSetFile()
);

$attachment = $this->_createAttachment(
$headers,
$headers,
$this->_createEncoder(),
$this->_createCache()
);
Expand Down Expand Up @@ -257,9 +257,9 @@ public function XtestContentTypeCanBeLookedUpFromCommonListIfNotProvided()
));

$attachment = $this->_createAttachment(
$headers,
$headers,
$this->_createEncoder(),
$this->_createCache(),
$this->_createCache(),
array('zip' => 'application/zip', 'txt' => 'text/plain')
);
$attachment->setFile($file);
Expand All @@ -270,7 +270,7 @@ public function testDataCanBeReadFromFile()
$file = $this->_createFileStream('/foo/file.ext', '<some data>');
$attachment = $this->_createAttachment(
$this->_createHeaderSet(),
$this->_createEncoder(),
$this->_createEncoder(),
$this->_createCache()
);
$attachment->setFile($file);
Expand All @@ -281,7 +281,7 @@ public function testFluidInterface()
{
$attachment = $this->_createAttachment(
$this->_createHeaderSet(),
$this->_createEncoder(),
$this->_createEncoder(),
$this->_createCache()
);

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Swift/Transport/AbstractSmtpTest.php
Expand Up @@ -4,7 +4,7 @@ abstract class Swift_Transport_AbstractSmtpTest extends \SwiftMailerTestCase
{
/**
* Abstract test method
*
*
* @param $buf
*
* @return Swift_Transport
Expand Down

0 comments on commit 8e36f3e

Please sign in to comment.