toBeInstanceOf(IncoId::class); }); it('throws exception if value is zero or negative', function () { // GIVEN $value = 0; // WHEN $action = fn () => new IncoId($value); // THEN expect($action)->toThrow(\DomainException::class); }); });