ldc-mesbr-app/tests/Unit/Domain/Enums/CountryTest.php

24 lines
582 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Tests\Unit\Shared\Enums;
2026-09-25 16:21:20 +02:00
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');
});
});