ldc-mesbr-app/tests/Unit/Domain/Enums/CountryTest.php
2026-09-29 14:38:45 +02:00

22 lines
516 B
PHP

<?php
declare(strict_types=1);
namespace Tests\Unit\Shared\Enums;
use Shared\Enums\Country;
covers(Country::class);
describe('country', function (): void {
it('has the expected cases with their backing values', function (): void {
// THEN
expect(Country::FRANCE->value)->toBe('france')
->and(Country::BENELUX->value)->toBe('benelux');
});
it('exposes its case name', function (): void {
// THEN
expect(Country::FRANCE->name)->toBe('FRANCE');
});
});