After applying this patch you can use the randomizer additionally
to phpunit. This randomizes the order the unit tests will be executed
on a phpunit run. This reveals cross dependencies between unit
tests.
So during your develoment you can use phpunit to execute your unit
test as usual. After you finished the development, run the randomizer
./bin/phpunit-randomizer -d memory_limit=-1 -c \
typo3/sysext/core/Build/UnitTests.xml $* --order rand
After finishing you'll find the seed used to produce this particular
order (e.g. 1234). If you spot any errors during the randomizing, you
can use this seed to reproduce the order.
./bin/phpunit-randomizer -d memory_limit=-1 -c \
typo3/sysext/core/Build/UnitTests.xml $* --order rand:1234