From 7503df435e6d18c59a73d3db36f770d36fb0d4c6 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 20 Mar 2024 05:15:59 +0000 Subject: [PATCH] upgrade phpunit --- tests/Models/NullTaxCodeL11nTest.php | 16 ++------ tests/Models/NullTaxCodeTest.php | 16 ++------ tests/phpunit_default.xml | 56 ++++++++++++++-------------- 3 files changed, 37 insertions(+), 51 deletions(-) diff --git a/tests/Models/NullTaxCodeL11nTest.php b/tests/Models/NullTaxCodeL11nTest.php index 895a1f5..ccf337e 100644 --- a/tests/Models/NullTaxCodeL11nTest.php +++ b/tests/Models/NullTaxCodeL11nTest.php @@ -19,31 +19,23 @@ use Modules\Finance\Models\NullTaxCodeL11n; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Finance\Models\NullTaxCodeL11n::class)] final class NullTaxCodeL11nTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Finance\Models\NullTaxCodeL11n - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\Finance\Models\TaxCodeL11n', new NullTaxCodeL11n()); } - /** - * @covers \Modules\Finance\Models\NullTaxCodeL11n - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullTaxCodeL11n(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\Finance\Models\NullTaxCodeL11n - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullTaxCodeL11n(2); diff --git a/tests/Models/NullTaxCodeTest.php b/tests/Models/NullTaxCodeTest.php index 135fe7c..98148dc 100644 --- a/tests/Models/NullTaxCodeTest.php +++ b/tests/Models/NullTaxCodeTest.php @@ -19,31 +19,23 @@ use Modules\Finance\Models\NullTaxCode; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Finance\Models\NullTaxCode::class)] final class NullTaxCodeTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\Finance\Models\NullTaxCode - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\Finance\Models\TaxCode', new NullTaxCode()); } - /** - * @covers \Modules\Finance\Models\NullTaxCode - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullTaxCode(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\Finance\Models\NullTaxCode - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullTaxCode(2); diff --git a/tests/phpunit_default.xml b/tests/phpunit_default.xml index d350430..e4a5639 100755 --- a/tests/phpunit_default.xml +++ b/tests/phpunit_default.xml @@ -1,31 +1,6 @@ - - - - ../ - - - ../vendor* - ../MainRepository* - ../Karaka* - ../Admin/Install/Application* - ../phpOMS* - ../tests* - ../*/tests* - ../**/tests* - */tests* - ../* - ../* - ../* - ../* - ../* - ../**/test* - ../**/Theme* - ../**/Admin/Routes* - ../**/Admin/Hooks* - ../**/Admin/Install* - ../Media/Files* - + + @@ -56,4 +31,31 @@ + + + ../ + + + ../vendor* + ../MainRepository* + ../Karaka* + ../Admin/Install/Application* + ../phpOMS* + ../tests* + ../*/tests* + ../**/tests* + */tests* + ../* + ../* + ../* + ../* + ../* + ../**/test* + ../**/Theme* + ../**/Admin/Routes* + ../**/Admin/Hooks* + ../**/Admin/Install* + ../Media/Files* + +