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