22 lines
516 B
PHP
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');
|
|
});
|
|
});
|