From e0f2699c196750e52ea739f7e58c9d1c7e3a1564 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 11 Oct 2023 11:39:56 +0800 Subject: [PATCH 1/1] DONOTCOMMIT: Test for MDL-79637 --- lib/phpunit/bootstrap.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/phpunit/bootstrap.php b/lib/phpunit/bootstrap.php index 8f9706f407..985ee14d8f 100644 --- a/lib/phpunit/bootstrap.php +++ b/lib/phpunit/bootstrap.php @@ -217,6 +217,14 @@ $CFG->jsrev = 1; 'PHPUNIT_ISOLATED_TEST', $_SERVER['PHP_SELF'] === 'Standard input code', ); + + $fh = fopen('/tmp/test.log', 'a'); + fwrite( + $fh, + "PHP_SELF: {$_SERVER['PHP_SELF']} => " . + 'PHPUNIT_ISOLATED_TEST: ' . (PHPUNIT_ISOLATED_TEST ? 'true' : 'false') . "\n", + ); + fclose($fh); })(); // load test case stub classes and other stuff -- 2.42.0