expect(fn () => PathSegmentType::Raw->routeMatchRegex()) ->toBeNull(); it('has no routeMatchRegex for Root') ->expect(fn () => PathSegmentType::Root->routeMatchRegex()) ->toBeNull(); it('has routeMatchRegex for Parameter') ->expect(fn () => PathSegmentType::Parameter->routeMatchRegex()) ->toBeString();