diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index f8767f331..96f79940b 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -49,6 +49,7 @@ jobs: php-version: ${{ matrix.php-versions }} extensions: intl #optional ini-values: "post_max_size=256M" #optional + coverage: xdebug - name: Print Env Varialbles run: printenv - name: PHP Module Checking diff --git a/spec/INTER-Mediator-UnitTest/Core/GenerateJSCode_Test.php b/spec/INTER-Mediator-UnitTest/Core/GenerateJSCode_Test.php index 4cfde71d7..7c243a430 100755 --- a/spec/INTER-Mediator-UnitTest/Core/GenerateJSCode_Test.php +++ b/spec/INTER-Mediator-UnitTest/Core/GenerateJSCode_Test.php @@ -73,11 +73,7 @@ function test_generateInitialJSCode3() #[PreserveGlobalState(false)] function test___construct() { - if (function_exists('xdebug_get_headers' && false)) { - /* - * 2024-10-23 msyk: xdebug_get_headers function doesn't work in GitHub actions. - * So the process of checking header is temporally detouring. These tests are passed on locally. - */ + if (function_exists('xdebug_get_headers')) { ob_start(); $this->generater->__construct(); $headers = xdebug_get_headers(); diff --git a/spec/INTER-Mediator-UnitTest/Core/IMUtil_Test.php b/spec/INTER-Mediator-UnitTest/Core/IMUtil_Test.php index efe57e43d..17b1bf607 100755 --- a/spec/INTER-Mediator-UnitTest/Core/IMUtil_Test.php +++ b/spec/INTER-Mediator-UnitTest/Core/IMUtil_Test.php @@ -164,11 +164,7 @@ public function test_outputSecurityHeaders() { $params = array(); - if (function_exists('xdebug_get_headers' && false)) { - /* - * 2024-10-23 msyk: xdebug_get_headers function doesn't work in GitHub actions. - * So the process of checking header is temporally detouring. These tests are passed on locally. - */ + if (function_exists('xdebug_get_headers')) { ob_start(); $this->util->outputSecurityHeaders(); $headers = xdebug_get_headers(); diff --git a/spec/INTER-Mediator-UnitTest/DB-PDO/DB_Proxy_Test_Common.php b/spec/INTER-Mediator-UnitTest/DB-PDO/DB_Proxy_Test_Common.php index 9048a3466..add76ffc3 100755 --- a/spec/INTER-Mediator-UnitTest/DB-PDO/DB_Proxy_Test_Common.php +++ b/spec/INTER-Mediator-UnitTest/DB-PDO/DB_Proxy_Test_Common.php @@ -36,11 +36,7 @@ function setUp(): void function test___construct() { $this->dbProxySetupForAuthAccess("person", 1); - if (function_exists('xdebug_get_headers' && false)) { - /* - * 2024-10-23 msyk: xdebug_get_headers function doesn't work in GitHub actions. - * So the process of checking header is temporally detouring. These tests are passed on locally. - */ + if (function_exists('xdebug_get_headers')) { ob_start(); $this->db_proxy->__construct(); $headers = xdebug_get_headers(); diff --git a/spec/INTER-Mediator-UnitTest_Legacy/DB-PDO/DB_Proxy_Test_Common.php b/spec/INTER-Mediator-UnitTest_Legacy/DB-PDO/DB_Proxy_Test_Common.php index 2606ac9a0..7469dc6a7 100755 --- a/spec/INTER-Mediator-UnitTest_Legacy/DB-PDO/DB_Proxy_Test_Common.php +++ b/spec/INTER-Mediator-UnitTest_Legacy/DB-PDO/DB_Proxy_Test_Common.php @@ -36,11 +36,7 @@ function setUp(): void function test___construct() { $this->dbProxySetupForAuthAccess("person", 1); - if (function_exists('xdebug_get_headers') && false) { - /* - * 2024-10-23 msyk: xdebug_get_headers function doesn't work in GitHub actions. - * So the process of checking header is temporally detouring. These tests are passed on locally. - */ + if (function_exists('xdebug_get_headers')) { ob_start(); $this->db_proxy->__construct(); $headers = xdebug_get_headers();