Skip to content

Commit 935785a

Browse files
Fix skip condition
1 parent 686b7ef commit 935785a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/end-to-end/regression/6105.phpt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
--TEST--
22
https://github.com/sebastianbergmann/phpunit/issues/6105
33
--SKIPIF--
4-
<?php if(!extension_loaded('xdebug')) {
5-
print 'skip: xdebug is not loaded';
4+
<?php declare(strict_types=1);
5+
if (!extension_loaded('xdebug')) {
6+
print 'skip: Xdebug is not loaded';
7+
}
8+
9+
if (!in_array('develop', xdebug_info('mode'), true) &&
10+
!in_array('debug', xdebug_info('mode'), true) &&
11+
!in_array('coverage', xdebug_info('mode'), true)) {
12+
print 'skip: Xdebug mode must include develop, debug, or coverage';
613
}
714
--FILE--
815
<?php declare(strict_types=1);

0 commit comments

Comments
 (0)