Skip to content

Commit

Permalink
Some tests are activated for issues in GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
msyk committed Oct 23, 2024
1 parent 155bb08 commit bb5c08d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
1 change: 1 addition & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions spec/INTER-Mediator-UnitTest/Core/GenerateJSCode_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 1 addition & 5 deletions spec/INTER-Mediator-UnitTest/Core/IMUtil_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 1 addition & 5 deletions spec/INTER-Mediator-UnitTest/DB-PDO/DB_Proxy_Test_Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bb5c08d

Please sign in to comment.