Skip to content

Commit 2e939b8

Browse files
committed
MQE-2429: [GitHub Issue # 810] MFTF 2.x incompatibility with PHP XDebug 3
1 parent b2bf749 commit 2e939b8

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ jobs:
9494
with:
9595
php-version: ${{ matrix.php-versions }}
9696
extensions: curl, dom, intl, json, openssl
97+
coverage: none
98+
if: ${{ matrix.php-versions >= 7.2 }}
9799

98100
- name: Cache Composer packages
99101
id: composer-cache

dev/tests/functional/standalone_bootstrap.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,3 @@
6868
$RELATIVE_TESTS_MODULE_PATH = '/tests/functional/tests/MFTF';
6969
defined('TESTS_MODULE_PATH') || define('TESTS_MODULE_PATH', realpath(TESTS_BP . $RELATIVE_TESTS_MODULE_PATH));
7070

71-
72-
// add the debug flag here
73-
$debug_mode = $_ENV['MFTF_DEBUG'] ?? false;
74-
if (!(bool)$debug_mode && extension_loaded('xdebug')) {
75-
if (function_exists('xdebug_disable')) {
76-
xdebug_disable();
77-
}
78-
}

src/Magento/FunctionalTestingFramework/_bootstrap.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,3 @@
7171
'TESTS_MODULE_PATH',
7272
realpath(TESTS_BP . $RELATIVE_TESTS_MODULE_PATH)
7373
);
74-
75-
// add the debug flag here
76-
$debugMode = $_ENV['MFTF_DEBUG'] ?? false;
77-
if (!(bool)$debugMode && extension_loaded('xdebug')) {
78-
if (function_exists('xdebug_disable')) {
79-
xdebug_disable();
80-
}
81-
}

0 commit comments

Comments
 (0)