Skip to content

Commit 95229b7

Browse files
authored
skip segfaulting test on more xdebug versions (#1634)
verified that the bug we experience still exists in xdebug 3.4.4 so lets assume it will be live for some more releases, and un-skip the test in the future
1 parent 04acb40 commit 95229b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/Unit/Context/ScopeTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,14 @@ public function test_order_mismatch_scope_detach_depth(): void
8080
$this->assertSame(0, $scope1->detach());
8181
}
8282

83+
/**
84+
* @todo Don't skip when https://bugs.xdebug.org/view.php?id=2332 is fixed
85+
*/
8386
public function test_inactive_scope_detach(): void
8487
{
85-
if (phpversion('xdebug') === '3.4.2') {
88+
if (version_compare(phpversion('xdebug'), '3.4.2', '>=')) {
8689
//@see https://bugs.xdebug.org/view.php?id=2332
87-
$this->markTestSkipped('skipping: segfault in xdebug 3.4.2');
90+
$this->markTestSkipped('skipping: segfault in xdebug');
8891
}
8992
$scope1 = Context::getCurrent()->activate();
9093

0 commit comments

Comments
 (0)