Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias <ilovemilk@wusa.io>2020-03-28 12:52:45 +0300
committerMatthias <ilovemilk@wusa.io>2020-03-28 12:52:45 +0300
commitad7a9d55665e9dac65726a4282451b83b0f8ac77 (patch)
treeb57af0bb053b9105a917dafdb180a3446266b376 /tests
parent7bb713e57667b8704d8f5dde4cfcd7b125b7cfb9 (diff)
change setUp method signature to match parent
Diffstat (limited to 'tests')
-rw-r--r--tests/Integration/AppTest.php2
-rw-r--r--tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php2
-rw-r--r--tests/Unit/Analyzer/FileCorruptionResultTest.php2
-rw-r--r--tests/Unit/Analyzer/FileExtensionAnalyzerTest.php2
-rw-r--r--tests/Unit/Analyzer/FileExtensionResultTest.php2
-rw-r--r--tests/Unit/Analyzer/FileTypeFunnellingAnalyzerTest.php2
-rw-r--r--tests/Unit/Analyzer/SequenceAnalyzerTest.php2
-rw-r--r--tests/Unit/Analyzer/SequenceOperationsAnalyzerTest.php2
-rw-r--r--tests/Unit/Analyzer/SequenceResultTest.php2
-rw-r--r--tests/Unit/Analyzer/SequenceSizeAnalyzerTest.php2
-rw-r--r--tests/Unit/AppInfo/ApplicationTest.php2
-rw-r--r--tests/Unit/BackgroundJob/CleanUpJobTest.php2
-rw-r--r--tests/Unit/Connector/Sabre/RequestPluginTest.php2
-rw-r--r--tests/Unit/Controller/BasicControllerTest.php2
-rw-r--r--tests/Unit/Controller/MonitoringControllerTest.php2
-rw-r--r--tests/Unit/Controller/RecoverControllerTest.php2
-rw-r--r--tests/Unit/Controller/ScanControllerTest.php2
-rw-r--r--tests/Unit/Db/FileOperationMapperTest.php2
-rw-r--r--tests/Unit/Db/FileOperationTest.php2
-rw-r--r--tests/Unit/Db/MapperTestUtility.php2
-rw-r--r--tests/Unit/Entropy/EntropyTest.php2
-rw-r--r--tests/Unit/FileSignatureTest.php2
-rw-r--r--tests/Unit/MonitorTest.php2
-rw-r--r--tests/Unit/Notification/NotifierTest.php2
-rw-r--r--tests/Unit/Scanner/StorageStructureTest.php2
-rw-r--r--tests/Unit/Service/FileOperationServiceTest.php2
-rw-r--r--tests/Unit/Settings/AdminSectionTest.php3
-rw-r--r--tests/Unit/Settings/AdminTest.php3
-rw-r--r--tests/Unit/Settings/PersonalSectionTest.php3
-rw-r--r--tests/Unit/Settings/PersonalTest.php3
-rw-r--r--tests/Unit/StorageWrapperTest.php2
31 files changed, 35 insertions, 31 deletions
diff --git a/tests/Integration/AppTest.php b/tests/Integration/AppTest.php
index d2ca4bd..937a5da 100644
--- a/tests/Integration/AppTest.php
+++ b/tests/Integration/AppTest.php
@@ -43,7 +43,7 @@ abstract class AppTest extends PHPUnit_Framework_TestCase
protected $userId = 'john';
- protected function setUp()
+ protected function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php b/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php
index e40fc71..5a14eeb 100644
--- a/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php
+++ b/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php
@@ -42,7 +42,7 @@ class FileCorruptionAnalyzerTest extends TestCase
/** @var FileCorruptionAnalyzer */
protected $fileCorruptionAnalyzer;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Analyzer/FileCorruptionResultTest.php b/tests/Unit/Analyzer/FileCorruptionResultTest.php
index 15947e6..92df811 100644
--- a/tests/Unit/Analyzer/FileCorruptionResultTest.php
+++ b/tests/Unit/Analyzer/FileCorruptionResultTest.php
@@ -29,7 +29,7 @@ class FileCorruptionResultTest extends TestCase
/** @var FileResult */
protected $fileResult;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Analyzer/FileExtensionAnalyzerTest.php b/tests/Unit/Analyzer/FileExtensionAnalyzerTest.php
index 459842c..cb14976 100644
--- a/tests/Unit/Analyzer/FileExtensionAnalyzerTest.php
+++ b/tests/Unit/Analyzer/FileExtensionAnalyzerTest.php
@@ -36,7 +36,7 @@ class FileExtensionAnalyzerTest extends TestCase
/** @var FileExtensionAnalyzer */
protected $fileExtensionAnalyzer;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Analyzer/FileExtensionResultTest.php b/tests/Unit/Analyzer/FileExtensionResultTest.php
index 7f6ad0e..ca33d7b 100644
--- a/tests/Unit/Analyzer/FileExtensionResultTest.php
+++ b/tests/Unit/Analyzer/FileExtensionResultTest.php
@@ -29,7 +29,7 @@ class FileExtensionResultTest extends TestCase
/** @var FileExtensionResult */
protected $fileExtensioneResult;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Analyzer/FileTypeFunnellingAnalyzerTest.php b/tests/Unit/Analyzer/FileTypeFunnellingAnalyzerTest.php
index 054d6a3..6d265a2 100644
--- a/tests/Unit/Analyzer/FileTypeFunnellingAnalyzerTest.php
+++ b/tests/Unit/Analyzer/FileTypeFunnellingAnalyzerTest.php
@@ -32,7 +32,7 @@ class FileTypeFunnellingAnalyzerTest extends TestCase
/** @var FileTypeFunnellingAnalyzer */
protected $fileTypeFunnellingAnalyzer;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Analyzer/SequenceAnalyzerTest.php b/tests/Unit/Analyzer/SequenceAnalyzerTest.php
index 4c9a774..1b31939 100644
--- a/tests/Unit/Analyzer/SequenceAnalyzerTest.php
+++ b/tests/Unit/Analyzer/SequenceAnalyzerTest.php
@@ -45,7 +45,7 @@ class SequenceAnalyzerTest extends TestCase
/** @var SequenceSizeAnalyzer */
protected $sequenceSizeAnalyzer;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Analyzer/SequenceOperationsAnalyzerTest.php b/tests/Unit/Analyzer/SequenceOperationsAnalyzerTest.php
index 5a7111b..f6b5383 100644
--- a/tests/Unit/Analyzer/SequenceOperationsAnalyzerTest.php
+++ b/tests/Unit/Analyzer/SequenceOperationsAnalyzerTest.php
@@ -31,7 +31,7 @@ class SequenceOperationsAnalyzerTest extends TestCase
/** @var SequenceOperationsAnalyzer */
protected $sequenceOperationsAnalyzer;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Analyzer/SequenceResultTest.php b/tests/Unit/Analyzer/SequenceResultTest.php
index adc21dc..3007b22 100644
--- a/tests/Unit/Analyzer/SequenceResultTest.php
+++ b/tests/Unit/Analyzer/SequenceResultTest.php
@@ -29,7 +29,7 @@ class SequenceResultTest extends TestCase
/** @var SequenceResult */
protected $sequenceResult;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Analyzer/SequenceSizeAnalyzerTest.php b/tests/Unit/Analyzer/SequenceSizeAnalyzerTest.php
index f419c82..64be25b 100644
--- a/tests/Unit/Analyzer/SequenceSizeAnalyzerTest.php
+++ b/tests/Unit/Analyzer/SequenceSizeAnalyzerTest.php
@@ -31,7 +31,7 @@ class SequenceSizeAnalyzerTest extends TestCase
/** @var SequenceSizeAnalyzer */
protected $sequenceSizeAnalyzer;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/AppInfo/ApplicationTest.php b/tests/Unit/AppInfo/ApplicationTest.php
index 81fcad2..04341cb 100644
--- a/tests/Unit/AppInfo/ApplicationTest.php
+++ b/tests/Unit/AppInfo/ApplicationTest.php
@@ -35,7 +35,7 @@ class ApplicationTest extends TestCase
/** @var \OCP\AppFramework\IAppContainer */
protected $container;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/BackgroundJob/CleanUpJobTest.php b/tests/Unit/BackgroundJob/CleanUpJobTest.php
index a2e6bc1..d5018c2 100644
--- a/tests/Unit/BackgroundJob/CleanUpJobTest.php
+++ b/tests/Unit/BackgroundJob/CleanUpJobTest.php
@@ -38,7 +38,7 @@ class CleanUpJobTest extends MapperTestUtility
/** @var IConfige|\PHPUnit_Framework_MockObject_MockObject */
protected $config;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Connector/Sabre/RequestPluginTest.php b/tests/Unit/Connector/Sabre/RequestPluginTest.php
index 9c2c282..d2b6eda 100644
--- a/tests/Unit/Connector/Sabre/RequestPluginTest.php
+++ b/tests/Unit/Connector/Sabre/RequestPluginTest.php
@@ -66,7 +66,7 @@ class RequestPluginTest extends TestCase
/** @var SequenceAnalyzer|\PHPUnit_Framework_MockObject_MockObject */
protected $sequenceAnalyzer;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Controller/BasicControllerTest.php b/tests/Unit/Controller/BasicControllerTest.php
index b49592e..8d5bc15 100644
--- a/tests/Unit/Controller/BasicControllerTest.php
+++ b/tests/Unit/Controller/BasicControllerTest.php
@@ -42,7 +42,7 @@ class BasicControllerTest extends TestCase
/** @var string */
protected $userId = 'john';
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Controller/MonitoringControllerTest.php b/tests/Unit/Controller/MonitoringControllerTest.php
index 3a07604..81c41c6 100644
--- a/tests/Unit/Controller/MonitoringControllerTest.php
+++ b/tests/Unit/Controller/MonitoringControllerTest.php
@@ -61,7 +61,7 @@ class MonitoringControllerTest extends TestCase
/** @var string */
protected $userId = 'john';
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Controller/RecoverControllerTest.php b/tests/Unit/Controller/RecoverControllerTest.php
index c08d5d9..9be4ef5 100644
--- a/tests/Unit/Controller/RecoverControllerTest.php
+++ b/tests/Unit/Controller/RecoverControllerTest.php
@@ -33,7 +33,7 @@ class RecoverControllerTest extends TestCase
/** @var string */
private $userId = 'john';
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Controller/ScanControllerTest.php b/tests/Unit/Controller/ScanControllerTest.php
index 80f2364..7133bbf 100644
--- a/tests/Unit/Controller/ScanControllerTest.php
+++ b/tests/Unit/Controller/ScanControllerTest.php
@@ -96,7 +96,7 @@ class ScanControllerTest extends TestCase
/** @var string */
protected $userId = 'john';
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Db/FileOperationMapperTest.php b/tests/Unit/Db/FileOperationMapperTest.php
index 2ac5519..6997c9e 100644
--- a/tests/Unit/Db/FileOperationMapperTest.php
+++ b/tests/Unit/Db/FileOperationMapperTest.php
@@ -32,7 +32,7 @@ class FileOperationMapperTest extends MapperTestUtility
/** @var array */
protected $fileOperations;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Db/FileOperationTest.php b/tests/Unit/Db/FileOperationTest.php
index 3befa4d..3098b92 100644
--- a/tests/Unit/Db/FileOperationTest.php
+++ b/tests/Unit/Db/FileOperationTest.php
@@ -33,7 +33,7 @@ class FileOperationTest extends TestCase
/** @var FileOperation */
protected $entity;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Db/MapperTestUtility.php b/tests/Unit/Db/MapperTestUtility.php
index fc4bff6..9470c38 100644
--- a/tests/Unit/Db/MapperTestUtility.php
+++ b/tests/Unit/Db/MapperTestUtility.php
@@ -41,7 +41,7 @@ abstract class MapperTestUtility extends TestCase
* Run this function before the actual test to either set or initialize the
* db. After this the db can be accessed by using $this->db.
*/
- protected function setUp()
+ protected function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Entropy/EntropyTest.php b/tests/Unit/Entropy/EntropyTest.php
index f4f87ce..a85a070 100644
--- a/tests/Unit/Entropy/EntropyTest.php
+++ b/tests/Unit/Entropy/EntropyTest.php
@@ -32,7 +32,7 @@ class EntropyTest extends TestCase
/** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
protected $logger;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/FileSignatureTest.php b/tests/Unit/FileSignatureTest.php
index e8e7f90..49465fc 100644
--- a/tests/Unit/FileSignatureTest.php
+++ b/tests/Unit/FileSignatureTest.php
@@ -27,7 +27,7 @@ use Test\TestCase;
class FileSignaturesTest extends TestCase
{
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
}
diff --git a/tests/Unit/MonitorTest.php b/tests/Unit/MonitorTest.php
index 4a7a488..296fa3a 100644
--- a/tests/Unit/MonitorTest.php
+++ b/tests/Unit/MonitorTest.php
@@ -78,7 +78,7 @@ class MonitorTest extends TestCase
/** @var string */
protected $userId = 'john';
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Notification/NotifierTest.php b/tests/Unit/Notification/NotifierTest.php
index 84786d1..88d063b 100644
--- a/tests/Unit/Notification/NotifierTest.php
+++ b/tests/Unit/Notification/NotifierTest.php
@@ -55,7 +55,7 @@ class NotifierTest extends TestCase
/** @var Notifier|\PHPUnit_Framework_MockObject_MockObject */
protected $notifier;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Scanner/StorageStructureTest.php b/tests/Unit/Scanner/StorageStructureTest.php
index 5d41f36..8139647 100644
--- a/tests/Unit/Scanner/StorageStructureTest.php
+++ b/tests/Unit/Scanner/StorageStructureTest.php
@@ -29,7 +29,7 @@ class StorageStructureTest extends TestCase
/** @var StorageStructure */
protected $storageStructure;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Service/FileOperationServiceTest.php b/tests/Unit/Service/FileOperationServiceTest.php
index 7df0aad..8ac2d3f 100644
--- a/tests/Unit/Service/FileOperationServiceTest.php
+++ b/tests/Unit/Service/FileOperationServiceTest.php
@@ -34,7 +34,7 @@ class FileOperationServiceTest extends MapperTestUtility
/** @var FileOperationMapper */
protected $mapper;
- public function setUp()
+ public function setUp(): void
{
parent::setUp();
diff --git a/tests/Unit/Settings/AdminSectionTest.php b/tests/Unit/Settings/AdminSectionTest.php
index 423b6dc..4f3a318 100644
--- a/tests/Unit/Settings/AdminSectionTest.php
+++ b/tests/Unit/Settings/AdminSectionTest.php
@@ -38,7 +38,8 @@ class AdminSectionTest extends TestCase {
/** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */
protected $l;
- public function setUp() {
+ public function setUp(): void
+ {
parent::setUp();
$this->urlGenerator = $this->getMockForAbstractClass( IURLGenerator::class, array(), '', FALSE, TRUE, TRUE, array( 'imagePath' ) );
diff --git a/tests/Unit/Settings/AdminTest.php b/tests/Unit/Settings/AdminTest.php
index 440445a..63b8503 100644
--- a/tests/Unit/Settings/AdminTest.php
+++ b/tests/Unit/Settings/AdminTest.php
@@ -35,7 +35,8 @@ class AdminTest extends TestCase {
/** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
protected $config;
- public function setUp() {
+ public function setUp(): void
+ {
parent::setUp();
$this->config = $this->getMockForAbstractClass( IConfig::class, array(), '', FALSE, TRUE, TRUE, array( 'getAppValue' ) );
diff --git a/tests/Unit/Settings/PersonalSectionTest.php b/tests/Unit/Settings/PersonalSectionTest.php
index 3992612..87d5a71 100644
--- a/tests/Unit/Settings/PersonalSectionTest.php
+++ b/tests/Unit/Settings/PersonalSectionTest.php
@@ -38,7 +38,8 @@ class PersonalSectionTest extends TestCase {
/** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */
protected $l;
- public function setUp() {
+ public function setUp(): void
+ {
parent::setUp();
$this->urlGenerator = $this->getMockForAbstractClass( IURLGenerator::class, array(), '', FALSE, TRUE, TRUE, array( 'imagePath' ) );
diff --git a/tests/Unit/Settings/PersonalTest.php b/tests/Unit/Settings/PersonalTest.php
index e05d47b..d831b48 100644
--- a/tests/Unit/Settings/PersonalTest.php
+++ b/tests/Unit/Settings/PersonalTest.php
@@ -35,7 +35,8 @@ class PersonalTest extends TestCase {
/** @var IConfig|\PHPUnit_Framework_MockObject_MockObject */
protected $config;
- public function setUp() {
+ public function setUp(): void
+ {
parent::setUp();
$this->config = $this->getMockForAbstractClass( IConfig::class, array(), '', FALSE, TRUE, TRUE, array( 'getUserValue' ) );
diff --git a/tests/Unit/StorageWrapperTest.php b/tests/Unit/StorageWrapperTest.php
index e45acf2..24d1833 100644
--- a/tests/Unit/StorageWrapperTest.php
+++ b/tests/Unit/StorageWrapperTest.php
@@ -32,7 +32,7 @@ class StorageWrapperTest extends TestCase
/** @var \OCA\RansomwareDetection\Monitor|\PHPUnit_Framework_MockObject_MockObject */
protected $monitor;
- protected function setUp()
+ protected function setUp(): void
{
parent::setUp();