value)->toBe($value) ->and($GS1->format)->toBe($format); }); it('rejects invalid gs1', function (): void { // GIVEN $value = ''; $format = BarcodeFormat::EAN13; // GIVEN / THEN expect(fn (): GS1 => new GS1($value, $format))->toThrow(\DomainException::class); }); });