I'm using PHPUnit and my traditional approach is to use mock objects and methods that get called by the methods I'm testing. The mock objects are told what to expect as input by the unit test. The problem is that part of the input supplied to the mock objects are being randomly generated by the methods being tested (and the unit test has no way of knowing what those are).
Just wondering if anyone could suggest a solution.