[TASK] #5170 Port more changes from PHPUnit to oelib.

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