value)->toBe('france') ->and(Country::BENELUX->value)->toBe('benelux'); }); it('exposes its case name', function (): void { // THEN expect(Country::FRANCE->name)->toBe('FRANCE'); }); it('is a domain exception', function (): void { // GIVEN / WHEN $exception = UnknownCountryIsoCodeException::fromIsoCode('XX'); // THEN expect($exception)->toBeInstanceOf(\DomainException::class); }); });