We describe in detail the first experimental test that distinguishes between an event-based corpuscular model of the interaction of photons with matter and quantum mechanics. The test looks at the interference that results as a single photon passes through a Mach-Zehnder interferometer. The experimental results, obtained with a low-noise single-photon source, agree with the predictions of standard quantum mechanics.