Skip to content

Commit

Permalink
Merge pull request #853 from EC-CUBE/seasoft-phpunit-20240302
Browse files Browse the repository at this point in the history
PHP 8 で PHPUnit が失敗する不具合を回避
  • Loading branch information
shinya authored Mar 6, 2024
2 parents 1866f8c + 7631399 commit 9fb10ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/class/modifier/Modifier_ScriptEscapeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
require 'data/smarty_extends/modifier.script_escape.php';

/**
* (省略。アノテーションを認識されるのに必要なようなので記述している。)
*
* PHP 8.1 でグローバル変数が消失する不具合を回避するため、下で `backupGlobals` を指定している。本質的には PHPUnit が PHP8 に対応していないのが原因と考えられる。
*
* @backupGlobals disabled
*/
class Modifier_ScriptEscapeTest extends PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit 9fb10ef

Please sign in to comment.