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;