From ebd174060362b374edb70ee83a1a3d8805c1eafc Mon Sep 17 00:00:00 2001 From: valb-mig Date: Mon, 2 Mar 2026 18:19:47 -0300 Subject: [PATCH] (refactor): Changing directories --- tests/Domain/{Entities => ValueObjects/App}/DiceTest.php | 9 ++++++--- .../EntryPoints/Console/Dice/RollDiceCommandTest.php | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) rename tests/Domain/{Entities => ValueObjects/App}/DiceTest.php (63%) diff --git a/tests/Domain/Entities/DiceTest.php b/tests/Domain/ValueObjects/App/DiceTest.php similarity index 63% rename from tests/Domain/Entities/DiceTest.php rename to tests/Domain/ValueObjects/App/DiceTest.php index 19c7430..e388fd1 100644 --- a/tests/Domain/Entities/DiceTest.php +++ b/tests/Domain/ValueObjects/App/DiceTest.php @@ -2,21 +2,24 @@ declare(strict_types=1); -namespace Tests\Domain\Entities; +namespace Tests\Domain\ValueObjects\App; +use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; use RPGPlayground\Domain\ValueObjects\App\Dice; class DiceTest extends TestCase { - public function testDiceCreation(): void + #[Test] + public function shouldSucceedWhenCreateDice(): void { $dice = new Dice(20); static::assertInstanceOf(Dice::class, $dice); static::assertSame(20, $dice->sides); } - public function testInvalidDiceCreation(): void + #[Test] + public function shouldFailWhenCreateDiceWithZeroSides(): void { $this->expectException(\InvalidArgumentException::class); new Dice(0); diff --git a/tests/Infrastructure/EntryPoints/Console/Dice/RollDiceCommandTest.php b/tests/Infrastructure/EntryPoints/Console/Dice/RollDiceCommandTest.php index 4009e92..2a06e9f 100644 --- a/tests/Infrastructure/EntryPoints/Console/Dice/RollDiceCommandTest.php +++ b/tests/Infrastructure/EntryPoints/Console/Dice/RollDiceCommandTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace RPGPlayground\Tests\Infrastructure\EntryPoints\Console\Dice; +namespace Tests\Infrastructure\EntryPoints\Console\Dice; use PHPUnit\Framework\TestCase; use RPGPlayground\Infrastructure\EntryPoints\Console\Dice\RollDiceCommand;