Today, while scripting a test case in sebastianbergmann/phpunit#2844 (comment), I realized that here the xdebug extension is missing.
This extension could slow down the moodle docker environment so it should be provided disabled by default and enabled only when required e.g. for the phpunit code coverage.