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

23 lines
540 B
PHP

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