As per the parent issue.
./Bootstrap/ErrorContainer.php
./Bootstrap/ExceptionContainer.php
\Drupal\system\Tests\System\UncaughtExceptionTest
Some test logic got simplified in testMissingDependencyCustomErrorHandler(), see #25
We tried not using cUrl, but failed to got to run this successfully on DrupalCi (worked great locally).