[CLEANUP] #5204 Backport the TestingFramework changes from PHPUnit

Change-Id: I8725fc29907725aa867bdccc164b797ca82094e0
Reviewed-on: http://review.typo3.org/35446
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>