ldc-mesbr-app/tests/Unit/Domain/Enums/CountryTest.php
2026-10-02 12:47:59 +02:00

23 lines
582 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::BELGIUM->value)->toBe('belgium')
->and(Country::LUXEMBOURG->value)->toBe('luxembourg');
});
it('exposes its case name', function (): void {
// THEN
expect(Country::FRANCE->name)->toBe('FRANCE');
});
});