Skip to content

Commit fe26de1

Browse files
Exit after printing skip message
1 parent 9e6b24e commit fe26de1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,22 @@ https://github.com/sebastianbergmann/phpunit/issues/6105
44
<?php declare(strict_types=1);
55
if (!extension_loaded('xdebug')) {
66
print 'skip: Xdebug is not loaded';
7+
8+
exit;
79
}
810

911
if (!in_array('develop', xdebug_info('mode'), true) &&
1012
!in_array('debug', xdebug_info('mode'), true) &&
1113
!in_array('coverage', xdebug_info('mode'), true)) {
1214
print 'skip: Xdebug mode must include develop, debug, or coverage';
15+
16+
exit;
1317
}
1418

1519
if (ini_get('xdebug.start_with_request') === '1') {
1620
print 'skip: Xdebug emits a warning that breaks output expectations when xdebug.start_with_request=1 is configured';
21+
22+
exit;
1723
}
1824
--FILE--
1925
<?php declare(strict_types=1);

0 commit comments

Comments
 (0)