Skip to content

Commit bf733f3

Browse files
committed
test: fix CommonFunctionsTest::testTraceWithCSP()
There was 1 error: 1) CodeIgniter\CommonFunctionsTest::testTraceWithCSP Test was run in child process and ended unexpectedly
1 parent a0849d5 commit bf733f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/system/CommonFunctionsTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,11 @@ public function testTraceWithCSP(): void
795795

796796
Kint::$cli_detection = false;
797797

798+
// Workaround for errors on PHPUnit 10 and PHP 8.3.
799+
// See https://github.com/sebastianbergmann/phpunit/issues/5403#issuecomment-1906810619
800+
// `$app->initialize()` sets error handler.
801+
restore_error_handler();
802+
798803
$this->expectOutputRegex('/<style class="kint-rich-style" nonce="[0-9a-z]{24}">/u');
799804
trace();
800805
}

0 commit comments

Comments
 (0)