Skip to content

Commit 7f8cf76

Browse files
Merge branch '8.0'
* 8.0: Safeguard call to xdebug_info() Expand test matrix
2 parents 616db22 + ebf5d96 commit 7f8cf76

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ jobs:
9292
- 8.4
9393
- 8.5
9494
- 8.6
95+
coverage:
96+
- none
97+
- xdebug
98+
- pcov
9599

96100
steps:
97101
- name: Checkout
@@ -112,7 +116,7 @@ jobs:
112116
uses: shivammathur/setup-php@v2
113117
with:
114118
php-version: ${{ matrix.php-version }}
115-
coverage: none
119+
coverage: ${{ matrix.coverage }}
116120
tools: none
117121

118122
- name: Get Composer cache directory

tests/RuntimeTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ private function markTestSkippedWhenXdebugCanCollectCoverage(): void
177177
{
178178
$this->markTestSkippedWhenXdebugIsLoaded();
179179

180+
if (!extension_loaded('xdebug')) {
181+
return;
182+
}
183+
180184
$xdebugMode = xdebug_info('mode');
181185

182186
assert(is_array($xdebugMode));

0 commit comments

Comments
 (0)