toBeInstanceOf(PrintRules::class) ->and($printRules->maxPerCustomer)->toBe(3) ->and($printRules->cooldownDays)->toBe(30); }); it('creates print rules with only maxPerCustomer set', function (): void { // WHEN $printRules = new PrintRules(maxPerCustomer: 5); // THEN expect($printRules->maxPerCustomer)->toBe(5) ->and($printRules->cooldownDays)->toBeNull(); }); it('creates print rules with only cooldownDays set', function (): void { // WHEN $printRules = new PrintRules(cooldownDays: 45); // THEN expect($printRules->maxPerCustomer)->toBeNull() ->and($printRules->cooldownDays)->toBe(45); }); it('creates print rules with both fields null by default', function (): void { // WHEN $printRules = new PrintRules(); // THEN expect($printRules->maxPerCustomer)->toBeNull() ->and($printRules->cooldownDays)->toBeNull(); }); });