From 76683ff8217d414ae4fbea69c02ef2405cd85d90 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 | 22 +++++++++---------- tests/Models/EmployeeEducationHistoryTest.php | 4 ++-- tests/Models/EmployeeHistoryMapperTest.php | 2 +- tests/Models/EmployeeMapperTest.php | 2 +- tests/Models/EmployeeTest.php | 12 +++++----- tests/Models/EmployeeWorkHistoryTest.php | 4 ++-- tests/Models/EmplyeeHistoryTest.php | 4 ++-- .../NullEmployeeEducationHistoryTest.php | 6 ++--- tests/Models/NullEmployeeHistoryTest.php | 6 ++--- tests/Models/NullEmployeeTest.php | 6 ++--- tests/Models/NullEmployeeWorkHistoryTest.php | 6 ++--- 13 files changed, 44 insertions(+), 44 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 e75414c..6faf2ed 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -115,7 +115,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testEmployeeFromAccountCreate() : void @@ -132,7 +132,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testNewEmployeeCreate() : void @@ -148,7 +148,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testApiEmployeeCreateInvalidData() : void @@ -164,7 +164,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testEmployeeCreateFromAccountInvalidData() : void @@ -180,7 +180,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testNewEmployeeCreateInvalidData() : void @@ -197,7 +197,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase /** * @depends testEmployeeFromAccountCreate - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testEmployeeHistoryCreate() : void @@ -235,7 +235,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testEmployeeHistoryCreateInvalidData() : void @@ -252,7 +252,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase /** * @depends testEmployeeFromAccountCreate - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testEmployeeWorkHistoryCreate() : void @@ -295,7 +295,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testEmployeeWorkHistoryCreateInvalidData() : void @@ -312,7 +312,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase /** * @depends testEmployeeFromAccountCreate - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testEmployeeEducationHistoryCreate() : void @@ -356,7 +356,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Controller\ApiController + * @covers \Modules\HumanResourceManagement\Controller\ApiController * @group module */ public function testEmployeeEducationHistoryCreateInvalidData() : void diff --git a/tests/Models/EmployeeEducationHistoryTest.php b/tests/Models/EmployeeEducationHistoryTest.php index 839bddc..494a537 100755 --- a/tests/Models/EmployeeEducationHistoryTest.php +++ b/tests/Models/EmployeeEducationHistoryTest.php @@ -32,7 +32,7 @@ final class EmployeeEducationHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\EmployeeEducationHistory + * @covers \Modules\HumanResourceManagement\Models\EmployeeEducationHistory * @group module */ public function testDefault() : void @@ -48,7 +48,7 @@ final class EmployeeEducationHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\EmployeeEducationHistory + * @covers \Modules\HumanResourceManagement\Models\EmployeeEducationHistory * @group module */ public function testSerialize() : void diff --git a/tests/Models/EmployeeHistoryMapperTest.php b/tests/Models/EmployeeHistoryMapperTest.php index ef5b198..790a2ba 100755 --- a/tests/Models/EmployeeHistoryMapperTest.php +++ b/tests/Models/EmployeeHistoryMapperTest.php @@ -25,7 +25,7 @@ use Modules\Profile\Models\ProfileMapper; final class EmployeeHistoryMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\HumanResourceManagement\Models\EmployeeHistoryMapper + * @covers \Modules\HumanResourceManagement\Models\EmployeeHistoryMapper * @group module */ public function testCRUD() : void diff --git a/tests/Models/EmployeeMapperTest.php b/tests/Models/EmployeeMapperTest.php index 1aceec2..d04cd1f 100755 --- a/tests/Models/EmployeeMapperTest.php +++ b/tests/Models/EmployeeMapperTest.php @@ -26,7 +26,7 @@ use Modules\Profile\Models\ProfileMapper; final class EmployeeMapperTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\HumanResourceManagement\Models\EmployeeMapper + * @covers \Modules\HumanResourceManagement\Models\EmployeeMapper * @group module */ public function testCR() : void diff --git a/tests/Models/EmployeeTest.php b/tests/Models/EmployeeTest.php index 3d4f017..3da5aaf 100755 --- a/tests/Models/EmployeeTest.php +++ b/tests/Models/EmployeeTest.php @@ -35,7 +35,7 @@ final class EmployeeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\Employee + * @covers \Modules\HumanResourceManagement\Models\Employee * @group module */ public function testDefault() : void @@ -51,7 +51,7 @@ final class EmployeeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\Employee + * @covers \Modules\HumanResourceManagement\Models\Employee * @group module */ public function testPrivateHashInputOutput() : void @@ -63,7 +63,7 @@ final class EmployeeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\Employee + * @covers \Modules\HumanResourceManagement\Models\Employee * @group module */ public function testHistoryInputOutput() : void @@ -75,7 +75,7 @@ final class EmployeeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\Employee + * @covers \Modules\HumanResourceManagement\Models\Employee * @group module */ public function testWorkHistoryInputOutput() : void @@ -87,7 +87,7 @@ final class EmployeeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\Employee + * @covers \Modules\HumanResourceManagement\Models\Employee * @group module */ public function testEducationHistoryInputOutput() : void @@ -99,7 +99,7 @@ final class EmployeeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\Employee + * @covers \Modules\HumanResourceManagement\Models\Employee * @group module */ public function testSerialize() : void diff --git a/tests/Models/EmployeeWorkHistoryTest.php b/tests/Models/EmployeeWorkHistoryTest.php index 82285fa..682f94d 100755 --- a/tests/Models/EmployeeWorkHistoryTest.php +++ b/tests/Models/EmployeeWorkHistoryTest.php @@ -32,7 +32,7 @@ final class EmployeeWorkHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\EmployeeWorkHistory + * @covers \Modules\HumanResourceManagement\Models\EmployeeWorkHistory * @group module */ public function testDefault() : void @@ -46,7 +46,7 @@ final class EmployeeWorkHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\EmployeeWorkHistory + * @covers \Modules\HumanResourceManagement\Models\EmployeeWorkHistory * @group module */ public function testSerialize() : void diff --git a/tests/Models/EmplyeeHistoryTest.php b/tests/Models/EmplyeeHistoryTest.php index 1f6f670..a944d68 100755 --- a/tests/Models/EmplyeeHistoryTest.php +++ b/tests/Models/EmplyeeHistoryTest.php @@ -32,7 +32,7 @@ final class EmployeeHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\EmployeeHistory + * @covers \Modules\HumanResourceManagement\Models\EmployeeHistory * @group module */ public function testDefault() : void @@ -47,7 +47,7 @@ final class EmployeeHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\EmployeeHistory + * @covers \Modules\HumanResourceManagement\Models\EmployeeHistory * @group module */ public function testSerialize() : void diff --git a/tests/Models/NullEmployeeEducationHistoryTest.php b/tests/Models/NullEmployeeEducationHistoryTest.php index 046ce01..381c63b 100755 --- a/tests/Models/NullEmployeeEducationHistoryTest.php +++ b/tests/Models/NullEmployeeEducationHistoryTest.php @@ -22,7 +22,7 @@ use Modules\HumanResourceManagement\Models\NullEmployeeEducationHistory; final class NullEmployeeEducationHistoryTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\HumanResourceManagement\Models\NullEmployeeEducationHistory + * @covers \Modules\HumanResourceManagement\Models\NullEmployeeEducationHistory * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullEmployeeEducationHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\NullEmployeeEducationHistory + * @covers \Modules\HumanResourceManagement\Models\NullEmployeeEducationHistory * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullEmployeeEducationHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\NullEmployeeEducationHistory + * @covers \Modules\HumanResourceManagement\Models\NullEmployeeEducationHistory * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullEmployeeHistoryTest.php b/tests/Models/NullEmployeeHistoryTest.php index 7e156bb..59a2ac4 100755 --- a/tests/Models/NullEmployeeHistoryTest.php +++ b/tests/Models/NullEmployeeHistoryTest.php @@ -22,7 +22,7 @@ use Modules\HumanResourceManagement\Models\NullEmployeeHistory; final class NullEmployeeHistoryTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\HumanResourceManagement\Models\NullEmployeeHistory + * @covers \Modules\HumanResourceManagement\Models\NullEmployeeHistory * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullEmployeeHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\NullEmployeeHistory + * @covers \Modules\HumanResourceManagement\Models\NullEmployeeHistory * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullEmployeeHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\NullEmployeeHistory + * @covers \Modules\HumanResourceManagement\Models\NullEmployeeHistory * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullEmployeeTest.php b/tests/Models/NullEmployeeTest.php index 0dde9ee..e221e54 100755 --- a/tests/Models/NullEmployeeTest.php +++ b/tests/Models/NullEmployeeTest.php @@ -22,7 +22,7 @@ use Modules\HumanResourceManagement\Models\NullEmployee; final class NullEmployeeTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\HumanResourceManagement\Models\NullEmployee + * @covers \Modules\HumanResourceManagement\Models\NullEmployee * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullEmployeeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\NullEmployee + * @covers \Modules\HumanResourceManagement\Models\NullEmployee * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullEmployeeTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\NullEmployee + * @covers \Modules\HumanResourceManagement\Models\NullEmployee * @group module */ public function testJsonSerialize() : void diff --git a/tests/Models/NullEmployeeWorkHistoryTest.php b/tests/Models/NullEmployeeWorkHistoryTest.php index ff8f4f3..8eef837 100755 --- a/tests/Models/NullEmployeeWorkHistoryTest.php +++ b/tests/Models/NullEmployeeWorkHistoryTest.php @@ -22,7 +22,7 @@ use Modules\HumanResourceManagement\Models\NullEmployeeWorkHistory; final class NullEmployeeWorkHistoryTest extends \PHPUnit\Framework\TestCase { /** - * @covers Modules\HumanResourceManagement\Models\NullEmployeeWorkHistory + * @covers \Modules\HumanResourceManagement\Models\NullEmployeeWorkHistory * @group module */ public function testNull() : void @@ -31,7 +31,7 @@ final class NullEmployeeWorkHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\NullEmployeeWorkHistory + * @covers \Modules\HumanResourceManagement\Models\NullEmployeeWorkHistory * @group module */ public function testId() : void @@ -41,7 +41,7 @@ final class NullEmployeeWorkHistoryTest extends \PHPUnit\Framework\TestCase } /** - * @covers Modules\HumanResourceManagement\Models\NullEmployeeWorkHistory + * @covers \Modules\HumanResourceManagement\Models\NullEmployeeWorkHistory * @group module */ public function testJsonSerialize() : void