[TASK] Port TestingFramework changes from oelib

Resolves: #63153

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