[WIP] Fixing broken tests

This reverts commit 8fc3387adc16f83f2b83ea4dfac25e9b6beb073d.
same as comment on https://github.com/phpDocumentor/phpDocumentor2/pull/1481/files#diff-c10fc9b888b357acefdbb2e06a8697f3R64