From 80176a5f3e5f0fa1bf3d6b1e4b1ce6b610222b0f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 20 Mar 2024 03:00:24 +0000 Subject: [PATCH] fix tests --- README.md | 4 ++-- composer.json | 10 +++++----- tests/Controller/ApiControllerTest.php | 12 ++++++------ tests/Models/ContactElementTest.php | 2 +- tests/Models/ContactTest.php | 2 +- tests/Models/NullContactElementTest.php | 6 +++--- tests/Models/NullContactTest.php | 6 +++--- tests/Models/NullProfileTest.php | 6 +++--- tests/Models/ProfileMapperTest.php | 2 +- tests/Models/ProfileTest.php | 18 +++++++++--------- 10 files changed, 34 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 4cb40c2..51f9ea4 100755 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ With Karaka you have one partner who can provide many tools and software solutio ## Requirements -* PHP 8.1 -* PHP extension: php8.1-dev php8.1-cli php8.1-common php8.1-mysql php8.1-pgsql php8.1-xdebug php8.1-opcache php8.1-pdo php8.1-sqlite php8.1-mbstring php8.1-curl php8.1-imap php8.1-bcmath php8.1-zip php8.1-dom php8.1-xml php8.1-phar php8.1-gd php-pear +* PHP 8.2 +* PHP extension: php8.2-dev php8.2-cli php8.2-common php8.2-intl php8.2-mysql php8.2-pgsql php8.2-xdebug php8.2-opcache php8.2-pdo php8.2-sqlite php8.2-mbstring php8.2-curl php8.2-imap php8.2-bcmath php8.2-zip php8.2-dom php8.2-xml php8.2-phar php8.2-gd php-pear * apache2 (recommended) or nginx * mysql-server (recommended) or postgresql postgresql-contrib * Tools: tesseract-ocr, pdftotext, pdftoppm diff --git a/composer.json b/composer.json index 2e47a08..7bd5508 100755 --- a/composer.json +++ b/composer.json @@ -8,15 +8,15 @@ } ], "require-dev": { - "phpunit/phpunit": ">=9.4", - "friendsofphp/php-cs-fixer": ">=3.8", - "squizlabs/php_codesniffer": ">=3.6", + "phpunit/phpunit": ">=11.0", + "friendsofphp/php-cs-fixer": ">=3.51", + "squizlabs/php_codesniffer": ">=3.7", "phpmd/phpmd": ">=2.9", - "phpstan/phpstan": ">=1.8.6", + "phpstan/phpstan": ">=1.10.62", "phan/phan": ">=3.2.6", "phploc/phploc": ">=7.0", "phpmetrics/phpmetrics": ">=2.8", - "rector/rector": ">=0.18.0" + "rector/rector": ">=1.0.3" }, "minimum-stability": "dev", "prefer-stable": true diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index 7d7014d..7fc4912 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -92,7 +92,7 @@ protected function setUp() : void } /** - * @covers Modules\Profile\Controller\ApiController + * @covers \Modules\Profile\Controller\ApiController * @group module */ public function testApiProfileCreate() : void @@ -111,7 +111,7 @@ public function testApiProfileCreate() : void } /** - * @covers Modules\Profile\Controller\ApiController + * @covers \Modules\Profile\Controller\ApiController * @group module */ public function testApiProfileTempLoginCreate() : void @@ -126,7 +126,7 @@ public function testApiProfileTempLoginCreate() : void } /** - * @covers Modules\Profile\Controller\ApiController + * @covers \Modules\Profile\Controller\ApiController * @group module */ public function testApiProfileImageSet() : void @@ -155,7 +155,7 @@ public function testApiProfileImageSet() : void } /** - * @covers Modules\Profile\Controller\ApiController + * @covers \Modules\Profile\Controller\ApiController * @group module */ public function testApiProfileImageSetInvalid() : void @@ -168,7 +168,7 @@ public function testApiProfileImageSetInvalid() : void } /** - * @covers Modules\Profile\Controller\ApiController + * @covers \Modules\Profile\Controller\ApiController * @group module */ /* @@ -189,7 +189,7 @@ public function testApiContactElementCreate() : void */ /** - * @covers Modules\Profile\Controller\ApiController + * @covers \Modules\Profile\Controller\ApiController * @group module */ public function testApiContactElementCreateInvalidData() : void diff --git a/tests/Models/ContactElementTest.php b/tests/Models/ContactElementTest.php index eb5fc62..0f0b6c8 100755 --- a/tests/Models/ContactElementTest.php +++ b/tests/Models/ContactElementTest.php @@ -32,7 +32,7 @@ protected function setUp() : void } /** - * @covers Modules\Profile\Models\ContactElement + * @covers \Modules\Profile\Models\ContactElement * @group module */ public function testDefault() : void diff --git a/tests/Models/ContactTest.php b/tests/Models/ContactTest.php index dd57d54..172a89a 100755 --- a/tests/Models/ContactTest.php +++ b/tests/Models/ContactTest.php @@ -32,7 +32,7 @@ protected function setUp() : void } /** - * @covers Modules\Profile\Models\Contact + * @covers \Modules\Profile\Models\Contact * @group module */ public function testDefault() : void diff --git a/tests/Models/NullContactElementTest.php b/tests/Models/NullContactElementTest.php index 0c21ba3..d6386f8 100755 --- a/tests/Models/NullContactElementTest.php +++ b/tests/Models/NullContactElementTest.php @@ -22,7 +22,7 @@ final class NullContactElementTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Profile\Models\NullContactElement + * @covers \Modules\Profile\Models\NullContactElement * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ public function testNull() : void } /** - * @covers Modules\Profile\Models\NullContactElement + * @covers \Modules\Profile\Models\NullContactElement * @group module */ public function testId() : void @@ -41,7 +41,7 @@ public function testId() : void } /** - * @covers Modules\Profile\Models\NullContactElement + * @covers \Modules\Profile\Models\NullContactElement * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullContactTest.php b/tests/Models/NullContactTest.php index 510d1a8..2d86782 100755 --- a/tests/Models/NullContactTest.php +++ b/tests/Models/NullContactTest.php @@ -22,7 +22,7 @@ final class NullContactTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Profile\Models\NullContact + * @covers \Modules\Profile\Models\NullContact * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ public function testNull() : void } /** - * @covers Modules\Profile\Models\NullContact + * @covers \Modules\Profile\Models\NullContact * @group module */ public function testId() : void @@ -41,7 +41,7 @@ public function testId() : void } /** - * @covers Modules\Profile\Models\NullContact + * @covers \Modules\Profile\Models\NullContact * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullProfileTest.php b/tests/Models/NullProfileTest.php index d00fb18..04a8983 100755 --- a/tests/Models/NullProfileTest.php +++ b/tests/Models/NullProfileTest.php @@ -22,7 +22,7 @@ final class NullProfileTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Profile\Models\NullProfile + * @covers \Modules\Profile\Models\NullProfile * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ public function testNull() : void } /** - * @covers Modules\Profile\Models\NullProfile + * @covers \Modules\Profile\Models\NullProfile * @group module */ public function testId() : void @@ -41,7 +41,7 @@ public function testId() : void } /** - * @covers Modules\Profile\Models\NullProfile + * @covers \Modules\Profile\Models\NullProfile * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/ProfileMapperTest.php b/tests/Models/ProfileMapperTest.php index 6c76f67..2b82317 100755 --- a/tests/Models/ProfileMapperTest.php +++ b/tests/Models/ProfileMapperTest.php @@ -26,7 +26,7 @@ final class ProfileMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Profile\Models\ProfileMapper + * @covers \Modules\Profile\Models\ProfileMapper * @group module */ public function testCRUD() : void diff --git a/tests/Models/ProfileTest.php b/tests/Models/ProfileTest.php index 0780810..0f736d9 100755 --- a/tests/Models/ProfileTest.php +++ b/tests/Models/ProfileTest.php @@ -36,7 +36,7 @@ protected function setUp() : void } /** - * @covers Modules\Profile\Models\Profile + * @covers \Modules\Profile\Models\Profile * @group module */ public function testDefault() : void @@ -50,7 +50,7 @@ public function testDefault() : void } /** - * @covers Modules\Profile\Models\Profile + * @covers \Modules\Profile\Models\Profile * @group module */ public function testGenderInputOutput() : void @@ -60,7 +60,7 @@ public function testGenderInputOutput() : void } /** - * @covers Modules\Profile\Models\Profile + * @covers \Modules\Profile\Models\Profile * @group module */ public function testInvalidGender() : void @@ -71,7 +71,7 @@ public function testInvalidGender() : void } /** - * @covers Modules\Profile\Models\Profile + * @covers \Modules\Profile\Models\Profile * @group module */ public function testSexInputOutput() : void @@ -81,7 +81,7 @@ public function testSexInputOutput() : void } /** - * @covers Modules\Profile\Models\Profile + * @covers \Modules\Profile\Models\Profile * @group module */ public function testInvalidSex() : void @@ -92,7 +92,7 @@ public function testInvalidSex() : void } /** - * @covers Modules\Profile\Models\Profile + * @covers \Modules\Profile\Models\Profile * @group module */ public function testBirthdayInputOutput() : void @@ -102,7 +102,7 @@ public function testBirthdayInputOutput() : void } /** - * @covers Modules\Profile\Models\Profile + * @covers \Modules\Profile\Models\Profile * @group module */ public function testImageInputOutput() : void @@ -112,7 +112,7 @@ public function testImageInputOutput() : void } /** - * @covers Modules\Profile\Models\Profile + * @covers \Modules\Profile\Models\Profile * @group module */ public function testAccountInputOutput() : void @@ -125,7 +125,7 @@ public function testAccountInputOutput() : void } /** - * @covers Modules\Profile\Models\Profile + * @covers \Modules\Profile\Models\Profile * @group module */ public function testSerialize() : void