From 363d0236204763fd3c03be030df89104ab990a54 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 | 14 +++++++------- tests/Models/NullTagTest.php | 6 +++--- tests/Models/TagL11nMapperTest.php | 2 +- tests/Models/TagMapperTest.php | 2 +- tests/Models/TagTest.php | 10 +++++----- 7 files changed, 24 insertions(+), 24 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 c8f373d..7ef00df 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -93,7 +93,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase private static int $tagId = 0; /** - * @covers Modules\Tag\Controller\ApiController + * @covers \Modules\Tag\Controller\ApiController * @group module */ public function testApiTagCreate() : void @@ -115,7 +115,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Controller\ApiController + * @covers \Modules\Tag\Controller\ApiController * @group module */ public function testApiTagCreateInvalid() : void @@ -129,7 +129,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Controller\ApiController + * @covers \Modules\Tag\Controller\ApiController * @group module */ public function testApiTagL11nCreate() : void @@ -149,7 +149,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Controller\ApiController + * @covers \Modules\Tag\Controller\ApiController * @group module */ public function testApiTagL11nCreateInvalid() : void @@ -163,7 +163,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Controller\ApiController + * @covers \Modules\Tag\Controller\ApiController * @group module */ public function testApiTagGet() : void @@ -180,7 +180,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Controller\ApiController + * @covers \Modules\Tag\Controller\ApiController * @group module */ public function testApiTagUpdate() : void @@ -199,7 +199,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Controller\ApiController + * @covers \Modules\Tag\Controller\ApiController * @group module */ public function testApiUnitFind() : void diff --git a/tests/Models/NullTagTest.php b/tests/Models/NullTagTest.php index 987e544..2a65c68 100755 --- a/tests/Models/NullTagTest.php +++ b/tests/Models/NullTagTest.php @@ -22,7 +22,7 @@ use Modules\Tag\Models\NullTag; final class NullTagTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Tag\Models\NullTag + * @covers \Modules\Tag\Models\NullTag * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullTagTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Models\NullTag + * @covers \Modules\Tag\Models\NullTag * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullTagTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Models\NullTag + * @covers \Modules\Tag\Models\NullTag * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/TagL11nMapperTest.php b/tests/Models/TagL11nMapperTest.php index e2b9679..a901a47 100755 --- a/tests/Models/TagL11nMapperTest.php +++ b/tests/Models/TagL11nMapperTest.php @@ -27,7 +27,7 @@ use phpOMS\Localization\ISO639x1Enum; final class TagL11nMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Tag\Models\TagL11nMapper + * @covers \Modules\Tag\Models\TagL11nMapper * @group module */ public function testCR() : void diff --git a/tests/Models/TagMapperTest.php b/tests/Models/TagMapperTest.php index 1afe775..87481ef 100755 --- a/tests/Models/TagMapperTest.php +++ b/tests/Models/TagMapperTest.php @@ -25,7 +25,7 @@ use phpOMS\Localization\ISO639x1Enum; final class TagMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\Tag\Models\TagMapper + * @covers \Modules\Tag\Models\TagMapper * @group module */ public function testCR() : void diff --git a/tests/Models/TagTest.php b/tests/Models/TagTest.php index c369647..ea67c9d 100755 --- a/tests/Models/TagTest.php +++ b/tests/Models/TagTest.php @@ -35,7 +35,7 @@ final class TagTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Models\Tag + * @covers \Modules\Tag\Models\Tag * @group module */ public function testDefault() : void @@ -48,7 +48,7 @@ final class TagTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Models\Tag + * @covers \Modules\Tag\Models\Tag * @group module */ public function testTitleInputOutput() : void @@ -64,7 +64,7 @@ final class TagTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Models\Tag + * @covers \Modules\Tag\Models\Tag * @group module */ public function testOwnerInputOutput() : void @@ -74,7 +74,7 @@ final class TagTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Models\Tag + * @covers \Modules\Tag\Models\Tag * @group module */ public function testColorInputOutput() : void @@ -84,7 +84,7 @@ final class TagTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\Tag\Models\Tag + * @covers \Modules\Tag\Models\Tag * @group module */ public function testSerialize() : void