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

23 lines
516 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::BENELUX->value)->toBe('benelux');
});
it('exposes its case name', function (): void {
// THEN
expect(Country::FRANCE->name)->toBe('FRANCE');
});
});