[+BUGFIX] replace uniqid() calls in Unit Tests
Currently we're using uniqid() in order to create random (class) names
in the FLOW3 unit tests. Unfortunately uniqid() is not so unique - at
least not on Windows:
"[...] since microtime() only works on systems that have gettimeofday()
present, which Windows natively DOES NOT, uniqid() might yield just the
single-second-resolution UNIX timestamp in a Windows environment."
This leads to fatal errors "Cannot redeclare class [XYZ]" when
executing the tests on Windows.
This is solved by specifying a random seed using mt_rand().
- BaseTestCase.php (diff)