legalText)->toBe($legalText) ->and($couponLegalInformation->forLocale)->toBe($forLocale); }); it('rejects invalid coupon legal information', function (): void { // GIVEN $legalText = ''; $forLocale = Country::FRANCE; // GIVEN / THEN expect(fn (): CouponLegalInformation => new CouponLegalInformation($legalText, $forLocale))->toThrow(\DomainException::class); }); });