From: Fabien Potencier <fabien@potencier.org>
Date: Tue, 11 Feb 2020 08:25:20 +0100
Subject: Fix PHPUnit method signatures

Forwarded: not-needed
Origin: https://github.com/swiftmailer/swiftmailer/commit/d48e9a0780f6149466e87480134cb9ebb4ae2348
---
 tests/SwiftMailerSmokeTestCase.php                                    | 2 +-
 tests/acceptance/Swift/ByteStream/FileByteStreamAcceptanceTest.php    | 4 ++--
 .../SimpleCharacterReaderFactoryAcceptanceTest.php                    | 2 +-
 tests/acceptance/Swift/Encoder/Base64EncoderAcceptanceTest.php        | 2 +-
 tests/acceptance/Swift/Encoder/QpEncoderAcceptanceTest.php            | 2 +-
 tests/acceptance/Swift/Encoder/Rfc2231EncoderAcceptanceTest.php       | 2 +-
 tests/acceptance/Swift/KeyCache/ArrayKeyCacheAcceptanceTest.php       | 2 +-
 tests/acceptance/Swift/KeyCache/DiskKeyCacheAcceptanceTest.php        | 2 +-
 tests/acceptance/Swift/Mime/AttachmentAcceptanceTest.php              | 2 +-
 .../Swift/Mime/ContentEncoder/Base64ContentEncoderAcceptanceTest.php  | 2 +-
 .../Mime/ContentEncoder/NativeQpContentEncoderAcceptanceTest.php      | 2 +-
 .../Swift/Mime/ContentEncoder/PlainContentEncoderAcceptanceTest.php   | 2 +-
 .../Swift/Mime/ContentEncoder/QpContentEncoderAcceptanceTest.php      | 4 ++--
 tests/acceptance/Swift/Mime/EmbeddedFileAcceptanceTest.php            | 2 +-
 .../Swift/Mime/HeaderEncoder/Base64HeaderEncoderAcceptanceTest.php    | 2 +-
 tests/acceptance/Swift/Mime/MimePartAcceptanceTest.php                | 2 +-
 tests/acceptance/Swift/Mime/SimpleMessageAcceptanceTest.php           | 2 +-
 .../Transport/StreamBuffer/AbstractStreamBufferAcceptanceTest.php     | 2 +-
 .../Swift/Transport/StreamBuffer/BasicSocketAcceptanceTest.php        | 2 +-
 .../acceptance/Swift/Transport/StreamBuffer/ProcessAcceptanceTest.php | 2 +-
 tests/acceptance/Swift/Transport/StreamBuffer/SocketTimeoutTest.php   | 4 ++--
 .../Swift/Transport/StreamBuffer/SslSocketAcceptanceTest.php          | 2 +-
 .../Swift/Transport/StreamBuffer/TlsSocketAcceptanceTest.php          | 2 +-
 tests/bug/Swift/Bug118Test.php                                        | 2 +-
 tests/bug/Swift/Bug206Test.php                                        | 2 +-
 tests/bug/Swift/Bug34Test.php                                         | 2 +-
 tests/bug/Swift/Bug35Test.php                                         | 2 +-
 tests/bug/Swift/Bug38Test.php                                         | 2 +-
 tests/bug/Swift/Bug51Test.php                                         | 4 ++--
 tests/bug/Swift/Bug71Test.php                                         | 2 +-
 tests/bug/Swift/Bug76Test.php                                         | 4 ++--
 tests/smoke/Swift/Smoke/AttachmentSmokeTest.php                       | 2 +-
 tests/smoke/Swift/Smoke/HtmlWithAttachmentSmokeTest.php               | 2 +-
 tests/smoke/Swift/Smoke/InternationalSmokeTest.php                    | 2 +-
 tests/unit/Swift/CharacterReader/UsAsciiReaderTest.php                | 2 +-
 tests/unit/Swift/CharacterReader/Utf8ReaderTest.php                   | 2 +-
 tests/unit/Swift/DependencyContainerTest.php                          | 2 +-
 tests/unit/Swift/Encoder/Base64EncoderTest.php                        | 2 +-
 tests/unit/Swift/Events/SimpleEventDispatcherTest.php                 | 2 +-
 tests/unit/Swift/Mime/ContentEncoder/Base64ContentEncoderTest.php     | 2 +-
 tests/unit/Swift/Mime/SimpleHeaderFactoryTest.php                     | 2 +-
 tests/unit/Swift/Plugins/BandwidthMonitorPluginTest.php               | 2 +-
 tests/unit/Swift/Plugins/Reporters/HitReporterTest.php                | 2 +-
 tests/unit/Swift/Plugins/Reporters/HtmlReporterTest.php               | 2 +-
 tests/unit/Swift/Signers/OpenDKIMSignerTest.php                       | 2 +-
 tests/unit/Swift/Signers/SMimeSignerTest.php                          | 2 +-
 tests/unit/Swift/Transport/Esmtp/Auth/CramMd5AuthenticatorTest.php    | 2 +-
 tests/unit/Swift/Transport/Esmtp/Auth/LoginAuthenticatorTest.php      | 2 +-
 tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php       | 2 +-
 tests/unit/Swift/Transport/Esmtp/Auth/PlainAuthenticatorTest.php      | 2 +-
 tests/unit/Swift/Transport/Esmtp/AuthHandlerTest.php                  | 2 +-
 51 files changed, 56 insertions(+), 56 deletions(-)

diff --git a/tests/SwiftMailerSmokeTestCase.php b/tests/SwiftMailerSmokeTestCase.php
index 173add1..b8928a4 100644
--- a/tests/SwiftMailerSmokeTestCase.php
+++ b/tests/SwiftMailerSmokeTestCase.php
@@ -7,7 +7,7 @@
  */
 class SwiftMailerSmokeTestCase extends SwiftMailerTestCase
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         if (!\defined('SWIFT_SMOKE_TRANSPORT_TYPE')) {
             $this->markTestSkipped(
diff --git a/tests/acceptance/Swift/ByteStream/FileByteStreamAcceptanceTest.php b/tests/acceptance/Swift/ByteStream/FileByteStreamAcceptanceTest.php
index a043315..9c48432 100644
--- a/tests/acceptance/Swift/ByteStream/FileByteStreamAcceptanceTest.php
+++ b/tests/acceptance/Swift/ByteStream/FileByteStreamAcceptanceTest.php
@@ -4,13 +4,13 @@ class Swift_ByteStream_FileByteStreamAcceptanceTest extends \PHPUnit\Framework\T
 {
     private $testFile;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->testFile = sys_get_temp_dir().'/swift-test-file'.__CLASS__;
         file_put_contents($this->testFile, 'abcdefghijklm');
     }
 
-    protected function tearDown()
+    protected function tearDown(): void
     {
         unlink($this->testFile);
     }
diff --git a/tests/acceptance/Swift/CharacterReaderFactory/SimpleCharacterReaderFactoryAcceptanceTest.php b/tests/acceptance/Swift/CharacterReaderFactory/SimpleCharacterReaderFactoryAcceptanceTest.php
index fcc7ad4..e794814 100644
--- a/tests/acceptance/Swift/CharacterReaderFactory/SimpleCharacterReaderFactoryAcceptanceTest.php
+++ b/tests/acceptance/Swift/CharacterReaderFactory/SimpleCharacterReaderFactoryAcceptanceTest.php
@@ -5,7 +5,7 @@ class Swift_CharacterReaderFactory_SimpleCharacterReaderFactoryAcceptanceTest ex
     private $factory;
     private $prefix = 'Swift_CharacterReader_';
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
     }
diff --git a/tests/acceptance/Swift/Encoder/Base64EncoderAcceptanceTest.php b/tests/acceptance/Swift/Encoder/Base64EncoderAcceptanceTest.php
index f7098c1..86bc2b3 100644
--- a/tests/acceptance/Swift/Encoder/Base64EncoderAcceptanceTest.php
+++ b/tests/acceptance/Swift/Encoder/Base64EncoderAcceptanceTest.php
@@ -5,7 +5,7 @@ class Swift_Encoder_Base64EncoderAcceptanceTest extends \PHPUnit\Framework\TestC
     private $samplesDir;
     private $encoder;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->samplesDir = realpath(__DIR__.'/../../../_samples/charsets');
         $this->encoder = new Swift_Encoder_Base64Encoder();
diff --git a/tests/acceptance/Swift/Encoder/QpEncoderAcceptanceTest.php b/tests/acceptance/Swift/Encoder/QpEncoderAcceptanceTest.php
index 5cad62a..c8a2435 100644
--- a/tests/acceptance/Swift/Encoder/QpEncoderAcceptanceTest.php
+++ b/tests/acceptance/Swift/Encoder/QpEncoderAcceptanceTest.php
@@ -5,7 +5,7 @@ class Swift_Encoder_QpEncoderAcceptanceTest extends \PHPUnit\Framework\TestCase
     private $samplesDir;
     private $factory;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->samplesDir = realpath(__DIR__.'/../../../_samples/charsets');
         $this->factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
diff --git a/tests/acceptance/Swift/Encoder/Rfc2231EncoderAcceptanceTest.php b/tests/acceptance/Swift/Encoder/Rfc2231EncoderAcceptanceTest.php
index 20c68d5..7293a0c 100644
--- a/tests/acceptance/Swift/Encoder/Rfc2231EncoderAcceptanceTest.php
+++ b/tests/acceptance/Swift/Encoder/Rfc2231EncoderAcceptanceTest.php
@@ -5,7 +5,7 @@ class Swift_Encoder_Rfc2231EncoderAcceptanceTest extends \PHPUnit\Framework\Test
     private $samplesDir;
     private $factory;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->samplesDir = realpath(__DIR__.'/../../../_samples/charsets');
         $this->factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
diff --git a/tests/acceptance/Swift/KeyCache/ArrayKeyCacheAcceptanceTest.php b/tests/acceptance/Swift/KeyCache/ArrayKeyCacheAcceptanceTest.php
index c54986b..44ca9ad 100644
--- a/tests/acceptance/Swift/KeyCache/ArrayKeyCacheAcceptanceTest.php
+++ b/tests/acceptance/Swift/KeyCache/ArrayKeyCacheAcceptanceTest.php
@@ -6,7 +6,7 @@ class Swift_KeyCache_ArrayKeyCacheAcceptanceTest extends \PHPUnit\Framework\Test
     private $key1 = 'key1';
     private $key2 = 'key2';
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->cache = new Swift_KeyCache_ArrayKeyCache(
             new Swift_KeyCache_SimpleKeyCacheInputStream()
diff --git a/tests/acceptance/Swift/KeyCache/DiskKeyCacheAcceptanceTest.php b/tests/acceptance/Swift/KeyCache/DiskKeyCacheAcceptanceTest.php
index 9764742..14f398f 100644
--- a/tests/acceptance/Swift/KeyCache/DiskKeyCacheAcceptanceTest.php
+++ b/tests/acceptance/Swift/KeyCache/DiskKeyCacheAcceptanceTest.php
@@ -6,7 +6,7 @@ class Swift_KeyCache_DiskKeyCacheAcceptanceTest extends \PHPUnit\Framework\TestC
     private $key1;
     private $key2;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->key1 = uniqid(microtime(true), true);
         $this->key2 = uniqid(microtime(true), true);
diff --git a/tests/acceptance/Swift/Mime/AttachmentAcceptanceTest.php b/tests/acceptance/Swift/Mime/AttachmentAcceptanceTest.php
index 920faed..5ec59db 100644
--- a/tests/acceptance/Swift/Mime/AttachmentAcceptanceTest.php
+++ b/tests/acceptance/Swift/Mime/AttachmentAcceptanceTest.php
@@ -9,7 +9,7 @@ class Swift_Mime_AttachmentAcceptanceTest extends \PHPUnit\Framework\TestCase
     private $headers;
     private $emailValidator;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->cache = new Swift_KeyCache_ArrayKeyCache(
             new Swift_KeyCache_SimpleKeyCacheInputStream()
diff --git a/tests/acceptance/Swift/Mime/ContentEncoder/Base64ContentEncoderAcceptanceTest.php b/tests/acceptance/Swift/Mime/ContentEncoder/Base64ContentEncoderAcceptanceTest.php
index a87b30e..14c2856 100644
--- a/tests/acceptance/Swift/Mime/ContentEncoder/Base64ContentEncoderAcceptanceTest.php
+++ b/tests/acceptance/Swift/Mime/ContentEncoder/Base64ContentEncoderAcceptanceTest.php
@@ -5,7 +5,7 @@ class Swift_Mime_ContentEncoder_Base64ContentEncoderAcceptanceTest extends \PHPU
     private $samplesDir;
     private $encoder;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->samplesDir = realpath(__DIR__.'/../../../../_samples/charsets');
         $this->encoder = new Swift_Mime_ContentEncoder_Base64ContentEncoder();
diff --git a/tests/acceptance/Swift/Mime/ContentEncoder/NativeQpContentEncoderAcceptanceTest.php b/tests/acceptance/Swift/Mime/ContentEncoder/NativeQpContentEncoderAcceptanceTest.php
index 421eb48..629b521 100644
--- a/tests/acceptance/Swift/Mime/ContentEncoder/NativeQpContentEncoderAcceptanceTest.php
+++ b/tests/acceptance/Swift/Mime/ContentEncoder/NativeQpContentEncoderAcceptanceTest.php
@@ -9,7 +9,7 @@ class Swift_Mime_ContentEncoder_NativeQpContentEncoderAcceptanceTest extends \PH
      */
     protected $encoder;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->samplesDir = realpath(__DIR__.'/../../../../_samples/charsets');
         $this->encoder = new Swift_Mime_ContentEncoder_NativeQpContentEncoder();
diff --git a/tests/acceptance/Swift/Mime/ContentEncoder/PlainContentEncoderAcceptanceTest.php b/tests/acceptance/Swift/Mime/ContentEncoder/PlainContentEncoderAcceptanceTest.php
index 544873a..27a2fe8 100644
--- a/tests/acceptance/Swift/Mime/ContentEncoder/PlainContentEncoderAcceptanceTest.php
+++ b/tests/acceptance/Swift/Mime/ContentEncoder/PlainContentEncoderAcceptanceTest.php
@@ -5,7 +5,7 @@ class Swift_Mime_ContentEncoder_PlainContentEncoderAcceptanceTest extends \PHPUn
     private $samplesDir;
     private $encoder;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->samplesDir = realpath(__DIR__.'/../../../../_samples/charsets');
         $this->encoder = new Swift_Mime_ContentEncoder_PlainContentEncoder('8bit');
diff --git a/tests/acceptance/Swift/Mime/ContentEncoder/QpContentEncoderAcceptanceTest.php b/tests/acceptance/Swift/Mime/ContentEncoder/QpContentEncoderAcceptanceTest.php
index 26d1a9b..f572506 100644
--- a/tests/acceptance/Swift/Mime/ContentEncoder/QpContentEncoderAcceptanceTest.php
+++ b/tests/acceptance/Swift/Mime/ContentEncoder/QpContentEncoderAcceptanceTest.php
@@ -5,13 +5,13 @@ class Swift_Mime_ContentEncoder_QpContentEncoderAcceptanceTest extends \PHPUnit\
     private $samplesDir;
     private $factory;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->samplesDir = realpath(__DIR__.'/../../../../_samples/charsets');
         $this->factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
     }
 
-    protected function tearDown()
+    protected function tearDown(): void
     {
         Swift_Preferences::getInstance()->setQPDotEscape(false);
     }
diff --git a/tests/acceptance/Swift/Mime/EmbeddedFileAcceptanceTest.php b/tests/acceptance/Swift/Mime/EmbeddedFileAcceptanceTest.php
index 5603a67..b39c97d 100644
--- a/tests/acceptance/Swift/Mime/EmbeddedFileAcceptanceTest.php
+++ b/tests/acceptance/Swift/Mime/EmbeddedFileAcceptanceTest.php
@@ -9,7 +9,7 @@ class Swift_Mime_EmbeddedFileAcceptanceTest extends \PHPUnit\Framework\TestCase
     private $headers;
     private $emailValidator;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->cache = new Swift_KeyCache_ArrayKeyCache(
             new Swift_KeyCache_SimpleKeyCacheInputStream()
diff --git a/tests/acceptance/Swift/Mime/HeaderEncoder/Base64HeaderEncoderAcceptanceTest.php b/tests/acceptance/Swift/Mime/HeaderEncoder/Base64HeaderEncoderAcceptanceTest.php
index 1c91df3..68d850d 100644
--- a/tests/acceptance/Swift/Mime/HeaderEncoder/Base64HeaderEncoderAcceptanceTest.php
+++ b/tests/acceptance/Swift/Mime/HeaderEncoder/Base64HeaderEncoderAcceptanceTest.php
@@ -4,7 +4,7 @@ class Swift_Mime_HeaderEncoder_Base64HeaderEncoderAcceptanceTest extends \PHPUni
 {
     private $encoder;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->encoder = new Swift_Mime_HeaderEncoder_Base64HeaderEncoder();
     }
diff --git a/tests/acceptance/Swift/Mime/MimePartAcceptanceTest.php b/tests/acceptance/Swift/Mime/MimePartAcceptanceTest.php
index 5a12daa..47d253e 100644
--- a/tests/acceptance/Swift/Mime/MimePartAcceptanceTest.php
+++ b/tests/acceptance/Swift/Mime/MimePartAcceptanceTest.php
@@ -9,7 +9,7 @@ class Swift_Mime_MimePartAcceptanceTest extends \PHPUnit\Framework\TestCase
     private $headers;
     private $emailValidator;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->cache = new Swift_KeyCache_ArrayKeyCache(
             new Swift_KeyCache_SimpleKeyCacheInputStream()
diff --git a/tests/acceptance/Swift/Mime/SimpleMessageAcceptanceTest.php b/tests/acceptance/Swift/Mime/SimpleMessageAcceptanceTest.php
index e7f0600..38633c2 100644
--- a/tests/acceptance/Swift/Mime/SimpleMessageAcceptanceTest.php
+++ b/tests/acceptance/Swift/Mime/SimpleMessageAcceptanceTest.php
@@ -2,7 +2,7 @@
 
 class Swift_Mime_SimpleMessageAcceptanceTest extends \PHPUnit\Framework\TestCase
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         Swift_Preferences::getInstance()->setCharset(null); //TODO: Test with the charset defined
     }
diff --git a/tests/acceptance/Swift/Transport/StreamBuffer/AbstractStreamBufferAcceptanceTest.php b/tests/acceptance/Swift/Transport/StreamBuffer/AbstractStreamBufferAcceptanceTest.php
index a9bd319..f8fc840 100644
--- a/tests/acceptance/Swift/Transport/StreamBuffer/AbstractStreamBufferAcceptanceTest.php
+++ b/tests/acceptance/Swift/Transport/StreamBuffer/AbstractStreamBufferAcceptanceTest.php
@@ -6,7 +6,7 @@ abstract class Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest e
 
     abstract protected function initializeBuffer();
 
-    protected function setUp()
+    protected function setUp(): void
     {
         if (true == getenv('TRAVIS')) {
             $this->markTestSkipped(
diff --git a/tests/acceptance/Swift/Transport/StreamBuffer/BasicSocketAcceptanceTest.php b/tests/acceptance/Swift/Transport/StreamBuffer/BasicSocketAcceptanceTest.php
index d1076e2..345df7c 100644
--- a/tests/acceptance/Swift/Transport/StreamBuffer/BasicSocketAcceptanceTest.php
+++ b/tests/acceptance/Swift/Transport/StreamBuffer/BasicSocketAcceptanceTest.php
@@ -4,7 +4,7 @@ require_once __DIR__.'/AbstractStreamBufferAcceptanceTest.php';
 
 class Swift_Transport_StreamBuffer_BasicSocketAcceptanceTest extends Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         if (!\defined('SWIFT_SMTP_HOST')) {
             $this->markTestSkipped(
diff --git a/tests/acceptance/Swift/Transport/StreamBuffer/ProcessAcceptanceTest.php b/tests/acceptance/Swift/Transport/StreamBuffer/ProcessAcceptanceTest.php
index f2b645f..68ad21e 100644
--- a/tests/acceptance/Swift/Transport/StreamBuffer/ProcessAcceptanceTest.php
+++ b/tests/acceptance/Swift/Transport/StreamBuffer/ProcessAcceptanceTest.php
@@ -4,7 +4,7 @@ require_once __DIR__.'/AbstractStreamBufferAcceptanceTest.php';
 
 class Swift_Transport_StreamBuffer_ProcessAcceptanceTest extends Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         if (!\defined('SWIFT_SENDMAIL_PATH')) {
             $this->markTestSkipped(
diff --git a/tests/acceptance/Swift/Transport/StreamBuffer/SocketTimeoutTest.php b/tests/acceptance/Swift/Transport/StreamBuffer/SocketTimeoutTest.php
index 53971a2..1f96700 100644
--- a/tests/acceptance/Swift/Transport/StreamBuffer/SocketTimeoutTest.php
+++ b/tests/acceptance/Swift/Transport/StreamBuffer/SocketTimeoutTest.php
@@ -6,7 +6,7 @@ class Swift_Transport_StreamBuffer_SocketTimeoutTest extends \PHPUnit\Framework\
     protected $server;
     protected $randomHighPort;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         if (!\defined('SWIFT_SMTP_HOST')) {
             $this->markTestSkipped(
@@ -56,7 +56,7 @@ class Swift_Transport_StreamBuffer_SocketTimeoutTest extends \PHPUnit\Framework\
         $this->assertMatchesRegularExpression('/Connection to .* Timed Out/', $e->getMessage());
     }
 
-    protected function tearDown()
+    protected function tearDown(): void
     {
         if ($this->server) {
             stream_socket_shutdown($this->server, STREAM_SHUT_RDWR);
diff --git a/tests/acceptance/Swift/Transport/StreamBuffer/SslSocketAcceptanceTest.php b/tests/acceptance/Swift/Transport/StreamBuffer/SslSocketAcceptanceTest.php
index 491ac46..f740c87 100644
--- a/tests/acceptance/Swift/Transport/StreamBuffer/SslSocketAcceptanceTest.php
+++ b/tests/acceptance/Swift/Transport/StreamBuffer/SslSocketAcceptanceTest.php
@@ -4,7 +4,7 @@ require_once __DIR__.'/AbstractStreamBufferAcceptanceTest.php';
 
 class Swift_Transport_StreamBuffer_SslSocketAcceptanceTest extends Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         $streams = stream_get_transports();
         if (!\in_array('ssl', $streams)) {
diff --git a/tests/acceptance/Swift/Transport/StreamBuffer/TlsSocketAcceptanceTest.php b/tests/acceptance/Swift/Transport/StreamBuffer/TlsSocketAcceptanceTest.php
index d7bddc3..bbc9f7a 100644
--- a/tests/acceptance/Swift/Transport/StreamBuffer/TlsSocketAcceptanceTest.php
+++ b/tests/acceptance/Swift/Transport/StreamBuffer/TlsSocketAcceptanceTest.php
@@ -4,7 +4,7 @@ require_once __DIR__.'/AbstractStreamBufferAcceptanceTest.php';
 
 class Swift_Transport_StreamBuffer_TlsSocketAcceptanceTest extends Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         $streams = stream_get_transports();
         if (!\in_array('tls', $streams)) {
diff --git a/tests/bug/Swift/Bug118Test.php b/tests/bug/Swift/Bug118Test.php
index 34aa136..a8473c4 100644
--- a/tests/bug/Swift/Bug118Test.php
+++ b/tests/bug/Swift/Bug118Test.php
@@ -4,7 +4,7 @@ class Swift_Bug118Test extends \PHPUnit\Framework\TestCase
 {
     private $message;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->message = new Swift_Message();
     }
diff --git a/tests/bug/Swift/Bug206Test.php b/tests/bug/Swift/Bug206Test.php
index a44a6a2..1513450 100644
--- a/tests/bug/Swift/Bug206Test.php
+++ b/tests/bug/Swift/Bug206Test.php
@@ -6,7 +6,7 @@ class Swift_Bug206Test extends \PHPUnit\Framework\TestCase
 {
     private $factory;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
         $headerEncoder = new Swift_Mime_HeaderEncoder_QpHeaderEncoder(
diff --git a/tests/bug/Swift/Bug34Test.php b/tests/bug/Swift/Bug34Test.php
index c1e55cb..d6d21a6 100644
--- a/tests/bug/Swift/Bug34Test.php
+++ b/tests/bug/Swift/Bug34Test.php
@@ -2,7 +2,7 @@
 
 class Swift_Bug34Test extends \PHPUnit\Framework\TestCase
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         Swift_Preferences::getInstance()->setCharset('utf-8');
     }
diff --git a/tests/bug/Swift/Bug35Test.php b/tests/bug/Swift/Bug35Test.php
index d1a6974..849b52c 100644
--- a/tests/bug/Swift/Bug35Test.php
+++ b/tests/bug/Swift/Bug35Test.php
@@ -2,7 +2,7 @@
 
 class Swift_Bug35Test extends \PHPUnit\Framework\TestCase
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         Swift_Preferences::getInstance()->setCharset('utf-8');
     }
diff --git a/tests/bug/Swift/Bug38Test.php b/tests/bug/Swift/Bug38Test.php
index 9a13b48..ba692a5 100644
--- a/tests/bug/Swift/Bug38Test.php
+++ b/tests/bug/Swift/Bug38Test.php
@@ -6,7 +6,7 @@ class Swift_Bug38Test extends \PHPUnit\Framework\TestCase
     private $attFileName;
     private $attFileType;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->attFileName = 'data.txt';
         $this->attFileType = 'text/plain';
diff --git a/tests/bug/Swift/Bug51Test.php b/tests/bug/Swift/Bug51Test.php
index fdeb89b..ac3a07d 100644
--- a/tests/bug/Swift/Bug51Test.php
+++ b/tests/bug/Swift/Bug51Test.php
@@ -5,7 +5,7 @@ class Swift_Bug51Test extends \SwiftMailerTestCase
     private $attachmentFile;
     private $outputFile;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->attachmentFile = sys_get_temp_dir().'/attach.rand.bin';
         file_put_contents($this->attachmentFile, '');
@@ -14,7 +14,7 @@ class Swift_Bug51Test extends \SwiftMailerTestCase
         file_put_contents($this->outputFile, '');
     }
 
-    protected function tearDown()
+    protected function tearDown(): void
     {
         unlink($this->attachmentFile);
         unlink($this->outputFile);
diff --git a/tests/bug/Swift/Bug71Test.php b/tests/bug/Swift/Bug71Test.php
index 90cee3f..9068a88 100644
--- a/tests/bug/Swift/Bug71Test.php
+++ b/tests/bug/Swift/Bug71Test.php
@@ -4,7 +4,7 @@ class Swift_Bug71Test extends \PHPUnit\Framework\TestCase
 {
     private $message;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->message = new Swift_Message('test');
     }
diff --git a/tests/bug/Swift/Bug76Test.php b/tests/bug/Swift/Bug76Test.php
index f97d7a8..1698c1d 100644
--- a/tests/bug/Swift/Bug76Test.php
+++ b/tests/bug/Swift/Bug76Test.php
@@ -6,7 +6,7 @@ class Swift_Bug76Test extends \PHPUnit\Framework\TestCase
     private $outputFile;
     private $encoder;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->inputFile = sys_get_temp_dir().'/in.bin';
         file_put_contents($this->inputFile, '');
@@ -17,7 +17,7 @@ class Swift_Bug76Test extends \PHPUnit\Framework\TestCase
         $this->encoder = $this->createEncoder();
     }
 
-    protected function tearDown()
+    protected function tearDown(): void
     {
         unlink($this->inputFile);
         unlink($this->outputFile);
diff --git a/tests/smoke/Swift/Smoke/AttachmentSmokeTest.php b/tests/smoke/Swift/Smoke/AttachmentSmokeTest.php
index 510d43e..756d1dc 100644
--- a/tests/smoke/Swift/Smoke/AttachmentSmokeTest.php
+++ b/tests/smoke/Swift/Smoke/AttachmentSmokeTest.php
@@ -7,7 +7,7 @@ class Swift_Smoke_AttachmentSmokeTest extends SwiftMailerSmokeTestCase
 {
     private $attFile;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         parent::setUp(); // For skip
         $this->attFile = __DIR__.'/../../../_samples/files/textfile.zip';
diff --git a/tests/smoke/Swift/Smoke/HtmlWithAttachmentSmokeTest.php b/tests/smoke/Swift/Smoke/HtmlWithAttachmentSmokeTest.php
index 5ed6c33..4efdfd9 100644
--- a/tests/smoke/Swift/Smoke/HtmlWithAttachmentSmokeTest.php
+++ b/tests/smoke/Swift/Smoke/HtmlWithAttachmentSmokeTest.php
@@ -7,7 +7,7 @@ class Swift_Smoke_HtmlWithAttachmentSmokeTest extends SwiftMailerSmokeTestCase
 {
     private $attFile;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         parent::setUp();
 
diff --git a/tests/smoke/Swift/Smoke/InternationalSmokeTest.php b/tests/smoke/Swift/Smoke/InternationalSmokeTest.php
index b1093f3..d9131ba 100644
--- a/tests/smoke/Swift/Smoke/InternationalSmokeTest.php
+++ b/tests/smoke/Swift/Smoke/InternationalSmokeTest.php
@@ -7,7 +7,7 @@ class Swift_Smoke_InternationalSmokeTest extends SwiftMailerSmokeTestCase
 {
     private $attFile;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         parent::setUp(); // For skip
         $this->attFile = __DIR__.'/../../../_samples/files/textfile.zip';
diff --git a/tests/unit/Swift/CharacterReader/UsAsciiReaderTest.php b/tests/unit/Swift/CharacterReader/UsAsciiReaderTest.php
index b85b0ab..1014963 100644
--- a/tests/unit/Swift/CharacterReader/UsAsciiReaderTest.php
+++ b/tests/unit/Swift/CharacterReader/UsAsciiReaderTest.php
@@ -18,7 +18,7 @@ class Swift_CharacterReader_UsAsciiReaderTest extends \PHPUnit\Framework\TestCas
 
     private $reader;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->reader = new Swift_CharacterReader_UsAsciiReader();
     }
diff --git a/tests/unit/Swift/CharacterReader/Utf8ReaderTest.php b/tests/unit/Swift/CharacterReader/Utf8ReaderTest.php
index 0637911..8d35c03 100644
--- a/tests/unit/Swift/CharacterReader/Utf8ReaderTest.php
+++ b/tests/unit/Swift/CharacterReader/Utf8ReaderTest.php
@@ -4,7 +4,7 @@ class Swift_CharacterReader_Utf8ReaderTest extends \PHPUnit\Framework\TestCase
 {
     private $reader;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->reader = new Swift_CharacterReader_Utf8Reader();
     }
diff --git a/tests/unit/Swift/DependencyContainerTest.php b/tests/unit/Swift/DependencyContainerTest.php
index 286f832..db8ee8b 100644
--- a/tests/unit/Swift/DependencyContainerTest.php
+++ b/tests/unit/Swift/DependencyContainerTest.php
@@ -16,7 +16,7 @@ class Swift_DependencyContainerTest extends \PHPUnit\Framework\TestCase
 {
     private $container;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->container = new Swift_DependencyContainer();
     }
diff --git a/tests/unit/Swift/Encoder/Base64EncoderTest.php b/tests/unit/Swift/Encoder/Base64EncoderTest.php
index eefb0c6..51d0878 100644
--- a/tests/unit/Swift/Encoder/Base64EncoderTest.php
+++ b/tests/unit/Swift/Encoder/Base64EncoderTest.php
@@ -4,7 +4,7 @@ class Swift_Encoder_Base64EncoderTest extends \PHPUnit\Framework\TestCase
 {
     private $encoder;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->encoder = new Swift_Encoder_Base64Encoder();
     }
diff --git a/tests/unit/Swift/Events/SimpleEventDispatcherTest.php b/tests/unit/Swift/Events/SimpleEventDispatcherTest.php
index 92eafe9..5888aeb 100644
--- a/tests/unit/Swift/Events/SimpleEventDispatcherTest.php
+++ b/tests/unit/Swift/Events/SimpleEventDispatcherTest.php
@@ -4,7 +4,7 @@ class Swift_Events_SimpleEventDispatcherTest extends \PHPUnit\Framework\TestCase
 {
     private $dispatcher;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->dispatcher = new Swift_Events_SimpleEventDispatcher();
     }
diff --git a/tests/unit/Swift/Mime/ContentEncoder/Base64ContentEncoderTest.php b/tests/unit/Swift/Mime/ContentEncoder/Base64ContentEncoderTest.php
index 3da7b4f..1a6fbb6 100644
--- a/tests/unit/Swift/Mime/ContentEncoder/Base64ContentEncoderTest.php
+++ b/tests/unit/Swift/Mime/ContentEncoder/Base64ContentEncoderTest.php
@@ -4,7 +4,7 @@ class Swift_Mime_ContentEncoder_Base64ContentEncoderTest extends \SwiftMailerTes
 {
     private $encoder;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->encoder = new Swift_Mime_ContentEncoder_Base64ContentEncoder();
     }
diff --git a/tests/unit/Swift/Mime/SimpleHeaderFactoryTest.php b/tests/unit/Swift/Mime/SimpleHeaderFactoryTest.php
index d15d81e..fd56415 100644
--- a/tests/unit/Swift/Mime/SimpleHeaderFactoryTest.php
+++ b/tests/unit/Swift/Mime/SimpleHeaderFactoryTest.php
@@ -6,7 +6,7 @@ class Swift_Mime_SimpleHeaderFactoryTest extends \PHPUnit\Framework\TestCase
 {
     private $factory;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->factory = $this->createFactory();
     }
diff --git a/tests/unit/Swift/Plugins/BandwidthMonitorPluginTest.php b/tests/unit/Swift/Plugins/BandwidthMonitorPluginTest.php
index ba50b08..836ae53 100644
--- a/tests/unit/Swift/Plugins/BandwidthMonitorPluginTest.php
+++ b/tests/unit/Swift/Plugins/BandwidthMonitorPluginTest.php
@@ -6,7 +6,7 @@ class Swift_Plugins_BandwidthMonitorPluginTest extends \PHPUnit\Framework\TestCa
 
     private $bytes = 0;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->monitor = new Swift_Plugins_BandwidthMonitorPlugin();
     }
diff --git a/tests/unit/Swift/Plugins/Reporters/HitReporterTest.php b/tests/unit/Swift/Plugins/Reporters/HitReporterTest.php
index d5a1c9c..cf94617 100644
--- a/tests/unit/Swift/Plugins/Reporters/HitReporterTest.php
+++ b/tests/unit/Swift/Plugins/Reporters/HitReporterTest.php
@@ -5,7 +5,7 @@ class Swift_Plugins_Reporters_HitReporterTest extends \PHPUnit\Framework\TestCas
     private $hitReporter;
     private $message;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->hitReporter = new Swift_Plugins_Reporters_HitReporter();
         $this->message = $this->getMockBuilder('Swift_Mime_SimpleMessage')->disableOriginalConstructor()->getMock();
diff --git a/tests/unit/Swift/Plugins/Reporters/HtmlReporterTest.php b/tests/unit/Swift/Plugins/Reporters/HtmlReporterTest.php
index 72ffaae..4aa64f5 100644
--- a/tests/unit/Swift/Plugins/Reporters/HtmlReporterTest.php
+++ b/tests/unit/Swift/Plugins/Reporters/HtmlReporterTest.php
@@ -5,7 +5,7 @@ class Swift_Plugins_Reporters_HtmlReporterTest extends \PHPUnit\Framework\TestCa
     private $html;
     private $message;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->html = new Swift_Plugins_Reporters_HtmlReporter();
         $this->message = $this->getMockBuilder('Swift_Mime_SimpleMessage')->disableOriginalConstructor()->getMock();
diff --git a/tests/unit/Swift/Signers/OpenDKIMSignerTest.php b/tests/unit/Swift/Signers/OpenDKIMSignerTest.php
index bf347aa..894a433 100644
--- a/tests/unit/Swift/Signers/OpenDKIMSignerTest.php
+++ b/tests/unit/Swift/Signers/OpenDKIMSignerTest.php
@@ -5,7 +5,7 @@
  */
 class Swift_Signers_OpenDKIMSignerTest extends \SwiftMailerTestCase
 {
-    protected function setUp()
+    protected function setUp(): void
     {
         if (!\extension_loaded('opendkim')) {
             $this->markTestSkipped(
diff --git a/tests/unit/Swift/Signers/SMimeSignerTest.php b/tests/unit/Swift/Signers/SMimeSignerTest.php
index 62b0d5f..e42d66c 100644
--- a/tests/unit/Swift/Signers/SMimeSignerTest.php
+++ b/tests/unit/Swift/Signers/SMimeSignerTest.php
@@ -9,7 +9,7 @@ class Swift_Signers_SMimeSignerTest extends \PHPUnit\Framework\TestCase
 
     protected $samplesDir;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->replacementFactory = Swift_DependencyContainer::getInstance()
             ->lookup('transport.replacementfactory');
diff --git a/tests/unit/Swift/Transport/Esmtp/Auth/CramMd5AuthenticatorTest.php b/tests/unit/Swift/Transport/Esmtp/Auth/CramMd5AuthenticatorTest.php
index 3fae9f9..c8c7103 100644
--- a/tests/unit/Swift/Transport/Esmtp/Auth/CramMd5AuthenticatorTest.php
+++ b/tests/unit/Swift/Transport/Esmtp/Auth/CramMd5AuthenticatorTest.php
@@ -4,7 +4,7 @@ class Swift_Transport_Esmtp_Auth_CramMd5AuthenticatorTest extends \SwiftMailerTe
 {
     private $agent;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->agent = $this->getMockery('Swift_Transport_SmtpAgent')->shouldIgnoreMissing();
     }
diff --git a/tests/unit/Swift/Transport/Esmtp/Auth/LoginAuthenticatorTest.php b/tests/unit/Swift/Transport/Esmtp/Auth/LoginAuthenticatorTest.php
index 46f58bf..ed799bf 100644
--- a/tests/unit/Swift/Transport/Esmtp/Auth/LoginAuthenticatorTest.php
+++ b/tests/unit/Swift/Transport/Esmtp/Auth/LoginAuthenticatorTest.php
@@ -4,7 +4,7 @@ class Swift_Transport_Esmtp_Auth_LoginAuthenticatorTest extends \SwiftMailerTest
 {
     private $agent;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->agent = $this->getMockery('Swift_Transport_SmtpAgent')->shouldIgnoreMissing();
     }
diff --git a/tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php b/tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php
index e6a3857..2337149 100644
--- a/tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php
+++ b/tests/unit/Swift/Transport/Esmtp/Auth/NTLMAuthenticatorTest.php
@@ -6,7 +6,7 @@ class Swift_Transport_Esmtp_Auth_NTLMAuthenticatorTest extends \SwiftMailerTestC
     private $message2 = '4e544c4d53535000020000000c000c003000000035828980514246973ea892c10000000000000000460046003c00000054004500530054004e00540002000c0054004500530054004e00540001000c004d0045004d0042004500520003001e006d0065006d006200650072002e0074006500730074002e0063006f006d0000000000';
     private $message3 = '4e544c4d5353500003000000180018006000000076007600780000000c000c0040000000080008004c0000000c000c0054000000000000009a0000000102000054004500530054004e00540074006500730074004d0045004d00420045005200bf2e015119f6bdb3f6fdb768aa12d478f5ce3d2401c8f6e9caa4da8f25d5e840974ed8976d3ada46010100000000000030fa7e3c677bc301f5ce3d2401c8f6e90000000002000c0054004500530054004e00540001000c004d0045004d0042004500520003001e006d0065006d006200650072002e0074006500730074002e0063006f006d000000000000000000';
 
-    protected function setUp()
+    protected function setUp(): void
     {
         if (!\function_exists('openssl_encrypt') || !\function_exists('bcmul')) {
             $this->markTestSkipped('One of the required functions is not available.');
diff --git a/tests/unit/Swift/Transport/Esmtp/Auth/PlainAuthenticatorTest.php b/tests/unit/Swift/Transport/Esmtp/Auth/PlainAuthenticatorTest.php
index 4c29d60..4863919 100644
--- a/tests/unit/Swift/Transport/Esmtp/Auth/PlainAuthenticatorTest.php
+++ b/tests/unit/Swift/Transport/Esmtp/Auth/PlainAuthenticatorTest.php
@@ -4,7 +4,7 @@ class Swift_Transport_Esmtp_Auth_PlainAuthenticatorTest extends \SwiftMailerTest
 {
     private $agent;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->agent = $this->getMockery('Swift_Transport_SmtpAgent')->shouldIgnoreMissing();
     }
diff --git a/tests/unit/Swift/Transport/Esmtp/AuthHandlerTest.php b/tests/unit/Swift/Transport/Esmtp/AuthHandlerTest.php
index 81d2d62..eaacd6f 100644
--- a/tests/unit/Swift/Transport/Esmtp/AuthHandlerTest.php
+++ b/tests/unit/Swift/Transport/Esmtp/AuthHandlerTest.php
@@ -4,7 +4,7 @@ class Swift_Transport_Esmtp_AuthHandlerTest extends \SwiftMailerTestCase
 {
     private $agent;
 
-    protected function setUp()
+    protected function setUp(): void
     {
         $this->agent = $this->getMockery('Swift_Transport_SmtpAgent')->shouldIgnoreMissing();
     }
