From 990c12d6dff12b33f467024344f3688ccc1a3bb2 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/NullInvestmentTest.php | 16 +++------ tests/phpunit_default.xml | 56 +++++++++++++++-------------- 2 files changed, 33 insertions(+), 39 deletions(-) diff --git a/tests/Models/NullInvestmentTest.php b/tests/Models/NullInvestmentTest.php index d5061fa..fb15acb 100644 --- a/tests/Models/NullInvestmentTest.php +++ b/tests/Models/NullInvestmentTest.php @@ -19,31 +19,23 @@ use Modules\InvestmentManagement\Models\NullInvestment; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\InvestmentManagement\Models\NullInvestment::class)] final class NullInvestmentTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\InvestmentManagement\Models\NullInvestment - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\InvestmentManagement\Models\Investment', new NullInvestment()); } - /** - * @covers \Modules\InvestmentManagement\Models\NullInvestment - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullInvestment(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\InvestmentManagement\Models\NullInvestment - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullInvestment(2); diff --git a/tests/phpunit_default.xml b/tests/phpunit_default.xml index d350430..e4a5639 100644 --- 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* + +