An electronic endoscope has a light guide for leading a light and a solid-state image sensor for capturing an image of a human body cavity during illumination. In inspecting the number of broken optical fibers in the light guide, a cap is attached to a distal portion of the electronic endoscope. The cap has a test chart. The solid-state image sensor captures an image of the test chart which is illuminated with the light transmitted through the light guide. A photometric circuit calculates an average luminance value “Y” of the test chart from a chart image signal. A broken fiber number calculator calculates the number “N” of broken optical fibers that satisfies N=M×(1−Y/I). “Y” represents an average luminance value of the test chart. “I” represents an ideal average luminance value when all optical fibers are conducting, and “M” represents the total number of the optical fibers.