Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
bug #664 Fixed properties not declared explicitly (deguif)
Browse files Browse the repository at this point in the history
This PR was merged into the 5.x branch.

Discussion
----------

Fixed properties not declared explicitly

There were also some wrong property names used (eg `showLen` vs `_showLen`) that could be causing some bugs.

Commits
-------

e433854 Fixed properties not declared explicitly
  • Loading branch information
fabpot committed Apr 30, 2016
2 parents 0c1487b + e433854 commit 9417399
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/classes/Swift/Signers/DKIMSigner.php
Expand Up @@ -373,7 +373,7 @@ public function setBodySignedLen($len)
$this->_showLen = true;
$this->_maxLen = PHP_INT_MAX;
} elseif ($len === false) {
$this->showLen = false;
$this->_showLen = false;
$this->_maxLen = PHP_INT_MAX;
} else {
$this->_showLen = true;
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/Signers/DomainKeySigner.php
Expand Up @@ -502,7 +502,7 @@ private function _startHash()
$this->_hashHandler = hash_init('sha1');
break;
}
$this->_canonLine = '';
$this->_bodyCanonLine = '';
}

/**
Expand Down
Expand Up @@ -2,6 +2,8 @@

class Swift_Mime_ContentEncoder_NativeQpContentEncoderAcceptanceTest extends \PHPUnit_Framework_TestCase
{
protected $_samplesDir;

/**
* @var Swift_Mime_ContentEncoder_NativeQpContentEncoder
*/
Expand Down
Expand Up @@ -4,6 +4,8 @@ class Swift_Transport_StreamBuffer_SocketTimeoutTest extends \PHPUnit_Framework_
{
protected $_buffer;

protected $_randomHighPort;

protected $_server;

public function setUp()
Expand Down
2 changes: 2 additions & 0 deletions tests/smoke/Swift/Smoke/AttachmentSmokeTest.php
Expand Up @@ -5,6 +5,8 @@
*/
class Swift_Smoke_AttachmentSmokeTest extends SwiftMailerSmokeTestCase
{
private $_attFile;

public function setUp()
{
$this->_attFile = __DIR__.'/../../../_samples/files/textfile.zip';
Expand Down
2 changes: 2 additions & 0 deletions tests/smoke/Swift/Smoke/HtmlWithAttachmentSmokeTest.php
Expand Up @@ -5,6 +5,8 @@
*/
class Swift_Smoke_HtmlWithAttachmentSmokeTest extends SwiftMailerSmokeTestCase
{
private $_attFile;

public function setUp()
{
$this->_attFile = __DIR__.'/../../../_samples/files/textfile.zip';
Expand Down
2 changes: 2 additions & 0 deletions tests/smoke/Swift/Smoke/InternationalSmokeTest.php
Expand Up @@ -5,6 +5,8 @@
*/
class Swift_Smoke_InternationalSmokeTest extends SwiftMailerSmokeTestCase
{
private $_attFile;

public function setUp()
{
$this->_attFile = __DIR__.'/../../../_samples/files/textfile.zip';
Expand Down
5 changes: 4 additions & 1 deletion tests/unit/Swift/Plugins/BandwidthMonitorPluginTest.php
Expand Up @@ -2,6 +2,10 @@

class Swift_Plugins_BandwidthMonitorPluginTest extends \PHPUnit_Framework_TestCase
{
private $_monitor;

private $_bytes = 0;

public function setUp()
{
$this->_monitor = new Swift_Plugins_BandwidthMonitorPlugin();
Expand Down Expand Up @@ -117,7 +121,6 @@ private function _createMessageWithByteCount($bytes)
return $msg;
}

private $_bytes = 0;
public function _write($is)
{
for ($i = 0; $i < $this->_bytes; ++$i) {
Expand Down

0 comments on commit 9417399

Please sign in to comment.