legalText = 'Lorem ipsum dolor sit amet consectetur adipiscing elit.'; $this->emptyLegalText = ''; $this->forLocale = Country::FRANCE; }); it('creates a valid coupon legal information', function (): void { // GIVEN / WHEN $couponLegalInformation = new CouponLegalInformation( $this->legalText, $this->forLocale ); // THEN expect($couponLegalInformation->legalText)->toBe($this->legalText) ->and($couponLegalInformation->forLocale)->toBe($this->forLocale); }); it('rejects invalid coupon legal information', function (): void { // GIVEN / WHEN / THEN expect(fn (): CouponLegalInformation => new CouponLegalInformation( $this->emptyLegalText, $this->forLocale ))->toThrow(\DomainException::class); }); });