diff --git a/bin/phpunit b/bin/phpunit index a1600d5e..84975dbb 100755 --- a/bin/phpunit +++ b/bin/phpunit @@ -1,19 +1,10 @@ #!/usr/bin/env php client = static::createClient([], [ 'PHP_AUTH_USER' => 'user', diff --git a/tests/Entity/StructuralDBElementTest.php b/tests/Entity/StructuralDBElementTest.php index eef6cb2a..cd4cb5bf 100644 --- a/tests/Entity/StructuralDBElementTest.php +++ b/tests/Entity/StructuralDBElementTest.php @@ -39,7 +39,7 @@ class StructuralDBElementTest extends TestCase protected $child1_1; protected $child1_2; - public function setUp() + public function setUp() : void { parent::setUp(); // TODO: Change the autogenerated stub diff --git a/tests/Entity/UserSystem/PermissionsEmbedTest.php b/tests/Entity/UserSystem/PermissionsEmbedTest.php index 936be474..db62308a 100644 --- a/tests/Entity/UserSystem/PermissionsEmbedTest.php +++ b/tests/Entity/UserSystem/PermissionsEmbedTest.php @@ -27,10 +27,6 @@ use PHPUnit\Framework\TestCase; class PermissionsEmbedTest extends TestCase { - public function setUp() - { - parent::setUp(); // TODO: Change the autogenerated stub - } public function testGetPermissionValue() { diff --git a/tests/Helpers/BBCodeToMarkdownConverterTest.php b/tests/Helpers/BBCodeToMarkdownConverterTest.php index 34cfbfef..0becdb9d 100644 --- a/tests/Helpers/BBCodeToMarkdownConverterTest.php +++ b/tests/Helpers/BBCodeToMarkdownConverterTest.php @@ -28,7 +28,7 @@ class BBCodeToMarkdownConverterTest extends TestCase { protected $converter; - public function setUp() + public function setUp() : void { $this->converter = new BBCodeToMarkdownConverter(); } diff --git a/tests/Helpers/TreeViewNodeTest.php b/tests/Helpers/TreeViewNodeTest.php index d3fda45a..edd6fe82 100644 --- a/tests/Helpers/TreeViewNodeTest.php +++ b/tests/Helpers/TreeViewNodeTest.php @@ -35,7 +35,7 @@ class TreeViewNodeTest extends TestCase */ protected $node2; - public function setUp() + public function setUp() : void { $sub_nodes = []; $sub_nodes[] = new TreeViewNode('Subnode 1'); diff --git a/tests/Security/UserCheckerTest.php b/tests/Security/UserCheckerTest.php index 283fa2d9..8ab27574 100644 --- a/tests/Security/UserCheckerTest.php +++ b/tests/Security/UserCheckerTest.php @@ -31,7 +31,7 @@ class UserCheckerTest extends TestCase { protected $service; - public function setUp() + public function setUp() : void { $this->service = new UserChecker(); } diff --git a/tests/Services/AmountFormatterTest.php b/tests/Services/AmountFormatterTest.php index cb2db8ea..676f617b 100644 --- a/tests/Services/AmountFormatterTest.php +++ b/tests/Services/AmountFormatterTest.php @@ -32,7 +32,7 @@ class AmountFormatterTest extends WebTestCase */ protected $service; - public function setUp() + public function setUp() : void { parent::setUp(); // TODO: Change the autogenerated stub diff --git a/tests/Services/Attachments/AttachmentPathResolverTest.php b/tests/Services/Attachments/AttachmentPathResolverTest.php index 0c5227f7..164e02a6 100644 --- a/tests/Services/Attachments/AttachmentPathResolverTest.php +++ b/tests/Services/Attachments/AttachmentPathResolverTest.php @@ -48,7 +48,7 @@ class AttachmentPathResolverTest extends WebTestCase self::$footprint_path = self::$projectDir.'/public/img/footprints'; } - public static function setUpBeforeClass() + public static function setUpBeforeClass() : void { parent::setUpBeforeClass(); diff --git a/tests/Services/Attachments/AttachmentURLGeneratorTest.php b/tests/Services/Attachments/AttachmentURLGeneratorTest.php index 7cc1d4f2..47d5ffe1 100644 --- a/tests/Services/Attachments/AttachmentURLGeneratorTest.php +++ b/tests/Services/Attachments/AttachmentURLGeneratorTest.php @@ -30,7 +30,7 @@ class AttachmentURLGeneratorTest extends WebTestCase protected static $service; - public static function setUpBeforeClass() + public static function setUpBeforeClass() : void { //Get an service instance. self::bootKernel(); diff --git a/tests/Services/Attachments/BuiltinAttachmentsFinderTest.php b/tests/Services/Attachments/BuiltinAttachmentsFinderTest.php index da0b79e8..6f74830d 100644 --- a/tests/Services/Attachments/BuiltinAttachmentsFinderTest.php +++ b/tests/Services/Attachments/BuiltinAttachmentsFinderTest.php @@ -34,7 +34,7 @@ class BuiltinAttachmentsFinderTest extends WebTestCase '%FOOTPRINTS_3D%/test.jpg', '%FOOTPRINTS_3D%/hallo.txt', ]; - public static function setUpBeforeClass() + public static function setUpBeforeClass() : void { //Get an service instance. self::bootKernel(); diff --git a/tests/Services/Attachments/FileTypeFilterToolsTest.php b/tests/Services/Attachments/FileTypeFilterToolsTest.php index c673753b..d93354ab 100644 --- a/tests/Services/Attachments/FileTypeFilterToolsTest.php +++ b/tests/Services/Attachments/FileTypeFilterToolsTest.php @@ -28,7 +28,7 @@ class FileTypeFilterToolsTest extends WebTestCase { protected static $service; - public static function setUpBeforeClass() + public static function setUpBeforeClass() : void { self::bootKernel(); self::$service = self::$container->get(FileTypeFilterTools::class); diff --git a/tests/Services/ElementTypeNameGeneratorTest.php b/tests/Services/ElementTypeNameGeneratorTest.php index 12b2b968..4a90e964 100644 --- a/tests/Services/ElementTypeNameGeneratorTest.php +++ b/tests/Services/ElementTypeNameGeneratorTest.php @@ -40,7 +40,7 @@ class ElementTypeNameGeneratorTest extends WebTestCase */ protected $service; - public function setUp() + public function setUp() : void { parent::setUp(); diff --git a/tests/Services/EntityImporterTest.php b/tests/Services/EntityImporterTest.php index 36a4912c..a16e5475 100644 --- a/tests/Services/EntityImporterTest.php +++ b/tests/Services/EntityImporterTest.php @@ -35,7 +35,7 @@ class EntityImporterTest extends WebTestCase */ protected $service; - public function setUp() + public function setUp() : void { parent::setUp(); diff --git a/tests/Services/FAIconGeneratorTest.php b/tests/Services/FAIconGeneratorTest.php index 77ba60c0..ceef26df 100644 --- a/tests/Services/FAIconGeneratorTest.php +++ b/tests/Services/FAIconGeneratorTest.php @@ -32,7 +32,7 @@ class FAIconGeneratorTest extends WebTestCase */ protected $service; - public function setUp() + public function setUp() : void { parent::setUp(); // TODO: Change the autogenerated stub diff --git a/tests/Services/PermissionResolverTest.php b/tests/Services/PermissionResolverTest.php index 3e514014..d31022ec 100644 --- a/tests/Services/PermissionResolverTest.php +++ b/tests/Services/PermissionResolverTest.php @@ -38,7 +38,7 @@ class PermissionResolverTest extends WebTestCase protected $user_withoutGroup; protected $group; - public function setUp() + public function setUp() : void { parent::setUp(); // TODO: Change the autogenerated stub diff --git a/tests/Services/PricedetailHelperTest.php b/tests/Services/PricedetailHelperTest.php index 50b95c1a..c726e6ee 100644 --- a/tests/Services/PricedetailHelperTest.php +++ b/tests/Services/PricedetailHelperTest.php @@ -35,7 +35,7 @@ class PricedetailHelperTest extends WebTestCase */ protected $service; - public function setUp() + public function setUp() : void { parent::setUp(); //Get an service instance. diff --git a/tests/Services/SIFormatterTest.php b/tests/Services/SIFormatterTest.php index daea7612..d1798f9b 100644 --- a/tests/Services/SIFormatterTest.php +++ b/tests/Services/SIFormatterTest.php @@ -31,7 +31,7 @@ class SIFormatterTest extends WebTestCase */ protected $service; - public function setUp() + public function setUp() : void { //Get an service instance. self::bootKernel();