From 3c8c0f8b7b63141de4aef2d72958dcff569ee7dd Mon Sep 17 00:00:00 2001
From: sy-records <52o@qq52o.cn>
Date: Wed, 3 Nov 2021 12:35:26 +0800
Subject: [PATCH] Add XDEBUG_MODE=coverage for executing PHPUnit
https://github.com/sebastianbergmann/php-code-coverage/issues/834
https://travis-ci.community/t/xdebug-3-is-installed-by-default-breaking-builds/10748
---
.travis.yml | 4 ++++
phpunit.xml | 4 ----
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 406f7ff0..e93c6579 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,10 @@ notifications:
- wjielai@tencent.com
- fysntian@tencent.com
+env:
+ global:
+ - XDEBUG_MODE=coverage
+
before_script:
- composer install --prefer-dist --dev --no-interaction
diff --git a/phpunit.xml b/phpunit.xml
index 9bd476e4..8409af3f 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -10,8 +10,4 @@
tests
-
-
-
-