As of 2020-12-03, this will be fixed on https://github.com/xdebug/xdebug/pull/699 but will be released in the future, in the mean time setting XDEBUG_MODE=coverage run the tests.
# on your .travis.yml
env:
global:
- XDEBUG_MODE=coverage
This cost me a good day!
As @eclipxe13 suggested XDEBUG_MODE=coverage will solve the issue.
I would suggest (because this is a bug that will be fixed soon), to simply add it via Repository Settings in Travis as shown here, no need to modify config files in Git Repository.
I have also had good fortune in running tests with php 8.0 this morning.
However, I hit a problem with some tests failing because of xdebug 3 being now used.
In short: xdebug 3.0.0 has a bug that makes it fail tests when running tests based on phpunit-selenium or even some versions of plain phpunit - see https://bugs.xdebug.org/bug_view_page.php?bug_id=00001903.
The most simple and correct fix seems to me to make sure that xdebug 3.0.1 is installed on the php vms instead of 3.0.0