diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index 0d090ff..269ff95 100644 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -30,10 +30,9 @@ use phpOMS\Router\WebRouter; use phpOMS\Utils\TestUtils; /** - * @testdox Modules\tests\BusinessExpenses\Controller\ApiControllerTest: BusinessExpenses api controller - * * @internal */ +#[\PHPUnit\Framework\Attributes\TestDox('Modules\tests\BusinessExpenses\Controller\ApiControllerTest: BusinessExpenses api controller')] final class ApiControllerTest extends \PHPUnit\Framework\TestCase { protected ApplicationAbstract $app; diff --git a/tests/Models/NullExpenseElementTest.php b/tests/Models/NullExpenseElementTest.php index f7e11b3..f07e32f 100644 --- a/tests/Models/NullExpenseElementTest.php +++ b/tests/Models/NullExpenseElementTest.php @@ -19,31 +19,23 @@ use Modules\BusinessExpenses\Models\NullExpenseElement; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\BusinessExpenses\Models\NullExpenseElement::class)] final class NullExpenseElementTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\BusinessExpenses\Models\NullExpenseElement - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\BusinessExpenses\Models\ExpenseElement', new NullExpenseElement()); } - /** - * @covers \Modules\BusinessExpenses\Models\NullExpenseElement - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullExpenseElement(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\BusinessExpenses\Models\NullExpenseElement - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullExpenseElement(2); diff --git a/tests/Models/NullExpenseTest.php b/tests/Models/NullExpenseTest.php index 28ca7df..65308ae 100644 --- a/tests/Models/NullExpenseTest.php +++ b/tests/Models/NullExpenseTest.php @@ -19,31 +19,23 @@ use Modules\BusinessExpenses\Models\NullExpense; /** * @internal */ +#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\BusinessExpenses\Models\NullExpense::class)] final class NullExpenseTest extends \PHPUnit\Framework\TestCase { - /** - * @covers \Modules\BusinessExpenses\Models\NullExpense - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testNull() : void { self::assertInstanceOf('\Modules\BusinessExpenses\Models\Expense', new NullExpense()); } - /** - * @covers \Modules\BusinessExpenses\Models\NullExpense - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testId() : void { $null = new NullExpense(2); self::assertEquals(2, $null->id); } - /** - * @covers \Modules\BusinessExpenses\Models\NullExpense - * @group module - */ + #[\PHPUnit\Framework\Attributes\Group('module')] public function testJsonSerialize() : void { $null = new NullExpense(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* + +