From 862f8832d5f7157014e71ced5204a430622d66ba Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sun, 30 Oct 2022 18:50:07 +0800 Subject: [PATCH 1/2] Group `runInSeparateProcess` and `preserveGlobalState` --- tests/system/Commands/GenerateKeyTest.php | 1 - tests/system/CommonFunctionsSendTest.php | 1 - tests/system/CommonFunctionsTest.php | 9 ------ tests/system/Config/BaseConfigTest.php | 3 -- tests/system/Config/ConfigTest.php | 1 - tests/system/Config/DotEnvTest.php | 2 -- tests/system/Config/ServicesTest.php | 7 ----- tests/system/Events/EventsTest.php | 1 - tests/system/Filters/HoneypotTest.php | 2 -- .../system/HTTP/ContentSecurityPolicyTest.php | 31 ------------------- tests/system/HTTP/DownloadResponseTest.php | 1 - tests/system/HTTP/IncomingRequestTest.php | 1 - tests/system/HTTP/RedirectResponseTest.php | 7 ----- tests/system/HTTP/ResponseSendTest.php | 3 -- tests/system/Helpers/FormHelperTest.php | 3 -- tests/system/Test/TestCaseEmissionsTest.php | 2 -- 16 files changed, 75 deletions(-) diff --git a/tests/system/Commands/GenerateKeyTest.php b/tests/system/Commands/GenerateKeyTest.php index 4ba9e8e0ffba..e4f05fddad95 100644 --- a/tests/system/Commands/GenerateKeyTest.php +++ b/tests/system/Commands/GenerateKeyTest.php @@ -86,7 +86,6 @@ public function testGenerateKeyShowsEncodedKey() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testGenerateKeyCreatesNewKey() diff --git a/tests/system/CommonFunctionsSendTest.php b/tests/system/CommonFunctionsSendTest.php index 03e675cfbfa5..594a0faab4db 100644 --- a/tests/system/CommonFunctionsSendTest.php +++ b/tests/system/CommonFunctionsSendTest.php @@ -32,7 +32,6 @@ protected function setUp(): void * See https://github.com/codeigniter4/CodeIgniter4/issues/1393 * * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testRedirectResponseCookiesSent() diff --git a/tests/system/CommonFunctionsTest.php b/tests/system/CommonFunctionsTest.php index ffe229ba424d..169e5bcc3e01 100644 --- a/tests/system/CommonFunctionsTest.php +++ b/tests/system/CommonFunctionsTest.php @@ -185,7 +185,6 @@ public function testEscapeBadContextZero() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testSessionInstance() @@ -197,7 +196,6 @@ public function testSessionInstance() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testSessionVariable() @@ -211,7 +209,6 @@ public function testSessionVariable() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testSessionVariableNotThere() @@ -295,7 +292,6 @@ public function testModelExistsAbsoluteClassname() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testOldInput() @@ -331,7 +327,6 @@ public function testOldInput() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testOldInputSerializeData() @@ -367,7 +362,6 @@ public function testOldInputSerializeData() * @see https://github.com/codeigniter4/CodeIgniter4/issues/1492 * * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testOldInputArray() @@ -481,7 +475,6 @@ public function testRedirectResponseCookies1() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testTrace() @@ -505,7 +498,6 @@ public function testViewNotSaveData() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testForceHttpsNullRequestAndResponse() @@ -586,7 +578,6 @@ public function testDWithCSP() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testTraceWithCSP() diff --git a/tests/system/Config/BaseConfigTest.php b/tests/system/Config/BaseConfigTest.php index 0ecc1380b2ac..950a26bf579b 100644 --- a/tests/system/Config/BaseConfigTest.php +++ b/tests/system/Config/BaseConfigTest.php @@ -80,7 +80,6 @@ public function testUseDefaultValueTypeStringValue() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testServerValues() @@ -177,7 +176,6 @@ public function testSetsDefaultValues() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testSetsDefaultValuesEncryptionUsingHex2Bin() @@ -193,7 +191,6 @@ public function testSetsDefaultValuesEncryptionUsingHex2Bin() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testSetDefaultValuesEncryptionUsingBase64() diff --git a/tests/system/Config/ConfigTest.php b/tests/system/Config/ConfigTest.php index af996652a92c..e5d382527edb 100644 --- a/tests/system/Config/ConfigTest.php +++ b/tests/system/Config/ConfigTest.php @@ -55,7 +55,6 @@ public function testCreateNonConfig() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testInjection() diff --git a/tests/system/Config/DotEnvTest.php b/tests/system/Config/DotEnvTest.php index e56aece895cc..5d6c6e822002 100644 --- a/tests/system/Config/DotEnvTest.php +++ b/tests/system/Config/DotEnvTest.php @@ -83,7 +83,6 @@ public function provideLoadVars(): iterable /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testLoadsHex2Bin() @@ -98,7 +97,6 @@ public function testLoadsHex2Bin() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testLoadsBase64() diff --git a/tests/system/Config/ServicesTest.php b/tests/system/Config/ServicesTest.php index 8f375d398484..96ce95089389 100644 --- a/tests/system/Config/ServicesTest.php +++ b/tests/system/Config/ServicesTest.php @@ -238,7 +238,6 @@ public function testNewViewcell() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testNewSession() @@ -249,7 +248,6 @@ public function testNewSession() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testNewSessionWithNullConfig() @@ -260,7 +258,6 @@ public function testNewSessionWithNullConfig() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testCallStatic() @@ -275,7 +272,6 @@ public function testCallStatic() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testCallStaticDirectly() @@ -287,7 +283,6 @@ public function testCallStaticDirectly() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testMockInjection() @@ -310,7 +305,6 @@ public function testMockInjection() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testReset() @@ -330,7 +324,6 @@ public function testReset() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testResetSingle() diff --git a/tests/system/Events/EventsTest.php b/tests/system/Events/EventsTest.php index 58a8159f3e1c..9b69a219b929 100644 --- a/tests/system/Events/EventsTest.php +++ b/tests/system/Events/EventsTest.php @@ -43,7 +43,6 @@ protected function tearDown(): void /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testInitialize() diff --git a/tests/system/Filters/HoneypotTest.php b/tests/system/Filters/HoneypotTest.php index c9cff3fa4125..94ec0b61d1ff 100644 --- a/tests/system/Filters/HoneypotTest.php +++ b/tests/system/Filters/HoneypotTest.php @@ -80,7 +80,6 @@ public function testBeforeClean() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testAfter() @@ -103,7 +102,6 @@ public function testAfter() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testAfterNotApplicable() diff --git a/tests/system/HTTP/ContentSecurityPolicyTest.php b/tests/system/HTTP/ContentSecurityPolicyTest.php index 19d720d9f49b..dea6bcf336ec 100644 --- a/tests/system/HTTP/ContentSecurityPolicyTest.php +++ b/tests/system/HTTP/ContentSecurityPolicyTest.php @@ -61,7 +61,6 @@ protected function work(string $parm = 'Hello') /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testExistence() @@ -74,7 +73,6 @@ public function testExistence() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testReportOnly() @@ -88,7 +86,6 @@ public function testReportOnly() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testDefaults() @@ -108,7 +105,6 @@ public function testDefaults() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testChildSrc() @@ -126,7 +122,6 @@ public function testChildSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testConnectSrc() @@ -143,7 +138,6 @@ public function testConnectSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testFontSrc() @@ -162,7 +156,6 @@ public function testFontSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testFormAction() @@ -181,7 +174,6 @@ public function testFormAction() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testFrameAncestor() @@ -199,7 +191,6 @@ public function testFrameAncestor() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testFrameSrc() @@ -217,7 +208,6 @@ public function testFrameSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testImageSrc() @@ -235,7 +225,6 @@ public function testImageSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testMediaSrc() @@ -253,7 +242,6 @@ public function testMediaSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testManifestSrc() @@ -271,7 +259,6 @@ public function testManifestSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testPluginType() @@ -289,7 +276,6 @@ public function testPluginType() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testPluginArray() @@ -305,7 +291,6 @@ public function testPluginArray() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testObjectSrc() @@ -323,7 +308,6 @@ public function testObjectSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testScriptSrc() @@ -341,7 +325,6 @@ public function testScriptSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testStyleSrc() @@ -359,7 +342,6 @@ public function testStyleSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testBaseURIDefault() @@ -373,7 +355,6 @@ public function testBaseURIDefault() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testBaseURI() @@ -388,7 +369,6 @@ public function testBaseURI() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testBaseURIRich() @@ -403,7 +383,6 @@ public function testBaseURIRich() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testDefaultSrc() @@ -420,7 +399,6 @@ public function testDefaultSrc() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testReportURI() @@ -436,7 +414,6 @@ public function testReportURI() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testSandboxFlags() @@ -453,7 +430,6 @@ public function testSandboxFlags() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testUpgradeInsecureRequests() @@ -468,7 +444,6 @@ public function testUpgradeInsecureRequests() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testBodyEmpty() @@ -482,7 +457,6 @@ public function testBodyEmpty() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testBodyScriptNonce() @@ -560,7 +534,6 @@ public function testBodyStyleNonceDisableAutoNonce() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testBodyStyleNonce() @@ -600,7 +573,6 @@ public function testBodyStyleNonceCustomStyleTag() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testHeaderWrongCaseNotFound() @@ -614,7 +586,6 @@ public function testHeaderWrongCaseNotFound() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testHeaderIgnoreCase() @@ -628,7 +599,6 @@ public function testHeaderIgnoreCase() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testCSPDisabled() @@ -660,7 +630,6 @@ public function testGetStyleNonce() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testHeaderScriptNonceEmittedOnceGetScriptNonceCalled() diff --git a/tests/system/HTTP/DownloadResponseTest.php b/tests/system/HTTP/DownloadResponseTest.php index 538575ab4d9d..0c25faa3af99 100644 --- a/tests/system/HTTP/DownloadResponseTest.php +++ b/tests/system/HTTP/DownloadResponseTest.php @@ -300,7 +300,6 @@ public function testPretendOutput() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testRealOutput() diff --git a/tests/system/HTTP/IncomingRequestTest.php b/tests/system/HTTP/IncomingRequestTest.php index ebfbafc590c8..e93a47b09832 100644 --- a/tests/system/HTTP/IncomingRequestTest.php +++ b/tests/system/HTTP/IncomingRequestTest.php @@ -124,7 +124,6 @@ public function testCanGetOldInputArrayWithSESSION() * @see https://github.com/codeigniter4/CodeIgniter4/issues/1492 * * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testCanGetOldInputArrayWithSessionService() diff --git a/tests/system/HTTP/RedirectResponseTest.php b/tests/system/HTTP/RedirectResponseTest.php index a3736f891a3d..eeedbd92b90a 100644 --- a/tests/system/HTTP/RedirectResponseTest.php +++ b/tests/system/HTTP/RedirectResponseTest.php @@ -117,7 +117,6 @@ public function testRedirectRelativeConvertsToFullURI() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testWithInput() @@ -138,7 +137,6 @@ public function testWithInput() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testWithValidationErrors() @@ -159,7 +157,6 @@ public function testWithValidationErrors() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testWith() @@ -176,7 +173,6 @@ public function testWith() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testRedirectBack() @@ -193,7 +189,6 @@ public function testRedirectBack() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testRedirectBackMissing() @@ -209,7 +204,6 @@ public function testRedirectBackMissing() /** * @runInSeparateProcess - * * @preserveGlobalState disabled * * @see https://github.com/codeigniter4/CodeIgniter4/issues/2119 @@ -251,7 +245,6 @@ public function testWithCookies() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testWithCookiesWithEmptyCookies() diff --git a/tests/system/HTTP/ResponseSendTest.php b/tests/system/HTTP/ResponseSendTest.php index b30587d0493e..85009618f0b3 100644 --- a/tests/system/HTTP/ResponseSendTest.php +++ b/tests/system/HTTP/ResponseSendTest.php @@ -44,7 +44,6 @@ final class ResponseSendTest extends CIUnitTestCase /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testHeadersMissingDate() @@ -78,7 +77,6 @@ public function testHeadersMissingDate() * it makes sure that sending gives CSP a chance to do its thing. * * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testHeadersWithCSP() @@ -115,7 +113,6 @@ public function testHeadersWithCSP() * @see https://github.com/codeigniter4/CodeIgniter4/issues/1393 * * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testRedirectResponseCookies() diff --git a/tests/system/Helpers/FormHelperTest.php b/tests/system/Helpers/FormHelperTest.php index ffd150aa7424..4e2e0324860b 100644 --- a/tests/system/Helpers/FormHelperTest.php +++ b/tests/system/Helpers/FormHelperTest.php @@ -816,7 +816,6 @@ public function testSetCheckboxWithValueZero() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testSetRadioFromSessionOldInput() @@ -837,7 +836,6 @@ public function testSetRadioFromSessionOldInput() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testSetRadioFromPost() @@ -851,7 +849,6 @@ public function testSetRadioFromPost() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testSetRadioFromPostWithValueZero() diff --git a/tests/system/Test/TestCaseEmissionsTest.php b/tests/system/Test/TestCaseEmissionsTest.php index edc3d6b34ef4..64f21b121734 100644 --- a/tests/system/Test/TestCaseEmissionsTest.php +++ b/tests/system/Test/TestCaseEmissionsTest.php @@ -42,7 +42,6 @@ final class TestCaseEmissionsTest extends CIUnitTestCase /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testHeadersEmitted() @@ -71,7 +70,6 @@ public function testHeadersEmitted() /** * @runInSeparateProcess - * * @preserveGlobalState disabled */ public function testHeadersNotEmitted() From 72412cf77ae07c58f6402624a0cef2a2abc2359b Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sun, 30 Oct 2022 18:52:50 +0800 Subject: [PATCH 2/2] Trim whitespace in preserveGlobalState --- tests/system/Commands/GenerateKeyTest.php | 2 +- tests/system/CommonFunctionsSendTest.php | 2 +- tests/system/CommonFunctionsTest.php | 16 ++--- tests/system/Config/BaseConfigTest.php | 6 +- tests/system/Config/ConfigTest.php | 2 +- tests/system/Config/DotEnvTest.php | 4 +- tests/system/Config/ServicesTest.php | 14 ++--- tests/system/Events/EventsTest.php | 2 +- tests/system/Filters/HoneypotTest.php | 4 +- .../system/HTTP/ContentSecurityPolicyTest.php | 62 +++++++++---------- tests/system/HTTP/DownloadResponseTest.php | 2 +- tests/system/HTTP/IncomingRequestTest.php | 2 +- tests/system/HTTP/RedirectResponseTest.php | 14 ++--- tests/system/HTTP/ResponseSendTest.php | 6 +- tests/system/Helpers/FormHelperTest.php | 6 +- tests/system/Test/TestCaseEmissionsTest.php | 4 +- 16 files changed, 74 insertions(+), 74 deletions(-) diff --git a/tests/system/Commands/GenerateKeyTest.php b/tests/system/Commands/GenerateKeyTest.php index e4f05fddad95..fbe95abc5564 100644 --- a/tests/system/Commands/GenerateKeyTest.php +++ b/tests/system/Commands/GenerateKeyTest.php @@ -86,7 +86,7 @@ public function testGenerateKeyShowsEncodedKey() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testGenerateKeyCreatesNewKey() { diff --git a/tests/system/CommonFunctionsSendTest.php b/tests/system/CommonFunctionsSendTest.php index 594a0faab4db..365049315778 100644 --- a/tests/system/CommonFunctionsSendTest.php +++ b/tests/system/CommonFunctionsSendTest.php @@ -32,7 +32,7 @@ protected function setUp(): void * See https://github.com/codeigniter4/CodeIgniter4/issues/1393 * * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testRedirectResponseCookiesSent() { diff --git a/tests/system/CommonFunctionsTest.php b/tests/system/CommonFunctionsTest.php index 169e5bcc3e01..1b3f9aaf7e06 100644 --- a/tests/system/CommonFunctionsTest.php +++ b/tests/system/CommonFunctionsTest.php @@ -185,7 +185,7 @@ public function testEscapeBadContextZero() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testSessionInstance() { @@ -196,7 +196,7 @@ public function testSessionInstance() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testSessionVariable() { @@ -209,7 +209,7 @@ public function testSessionVariable() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testSessionVariableNotThere() { @@ -292,7 +292,7 @@ public function testModelExistsAbsoluteClassname() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testOldInput() { @@ -327,7 +327,7 @@ public function testOldInput() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testOldInputSerializeData() { @@ -362,7 +362,7 @@ public function testOldInputSerializeData() * @see https://github.com/codeigniter4/CodeIgniter4/issues/1492 * * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testOldInputArray() { @@ -498,7 +498,7 @@ public function testViewNotSaveData() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testForceHttpsNullRequestAndResponse() { @@ -578,7 +578,7 @@ public function testDWithCSP() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testTraceWithCSP() { diff --git a/tests/system/Config/BaseConfigTest.php b/tests/system/Config/BaseConfigTest.php index 950a26bf579b..71ef095f0fcf 100644 --- a/tests/system/Config/BaseConfigTest.php +++ b/tests/system/Config/BaseConfigTest.php @@ -80,7 +80,7 @@ public function testUseDefaultValueTypeStringValue() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testServerValues() { @@ -176,7 +176,7 @@ public function testSetsDefaultValues() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testSetsDefaultValuesEncryptionUsingHex2Bin() { @@ -191,7 +191,7 @@ public function testSetsDefaultValuesEncryptionUsingHex2Bin() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testSetDefaultValuesEncryptionUsingBase64() { diff --git a/tests/system/Config/ConfigTest.php b/tests/system/Config/ConfigTest.php index e5d382527edb..52951d7ef87c 100644 --- a/tests/system/Config/ConfigTest.php +++ b/tests/system/Config/ConfigTest.php @@ -55,7 +55,7 @@ public function testCreateNonConfig() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testInjection() { diff --git a/tests/system/Config/DotEnvTest.php b/tests/system/Config/DotEnvTest.php index 5d6c6e822002..b35ab39b5fb6 100644 --- a/tests/system/Config/DotEnvTest.php +++ b/tests/system/Config/DotEnvTest.php @@ -83,7 +83,7 @@ public function provideLoadVars(): iterable /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testLoadsHex2Bin() { @@ -97,7 +97,7 @@ public function testLoadsHex2Bin() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testLoadsBase64() { diff --git a/tests/system/Config/ServicesTest.php b/tests/system/Config/ServicesTest.php index 96ce95089389..ac515816fc0c 100644 --- a/tests/system/Config/ServicesTest.php +++ b/tests/system/Config/ServicesTest.php @@ -238,7 +238,7 @@ public function testNewViewcell() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testNewSession() { @@ -248,7 +248,7 @@ public function testNewSession() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testNewSessionWithNullConfig() { @@ -258,7 +258,7 @@ public function testNewSessionWithNullConfig() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testCallStatic() { @@ -272,7 +272,7 @@ public function testCallStatic() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testCallStaticDirectly() { @@ -283,7 +283,7 @@ public function testCallStaticDirectly() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testMockInjection() { @@ -305,7 +305,7 @@ public function testMockInjection() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testReset() { @@ -324,7 +324,7 @@ public function testReset() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testResetSingle() { diff --git a/tests/system/Events/EventsTest.php b/tests/system/Events/EventsTest.php index 9b69a219b929..b6a8aa1a4cb7 100644 --- a/tests/system/Events/EventsTest.php +++ b/tests/system/Events/EventsTest.php @@ -43,7 +43,7 @@ protected function tearDown(): void /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testInitialize() { diff --git a/tests/system/Filters/HoneypotTest.php b/tests/system/Filters/HoneypotTest.php index 94ec0b61d1ff..714a35ebaf60 100644 --- a/tests/system/Filters/HoneypotTest.php +++ b/tests/system/Filters/HoneypotTest.php @@ -80,7 +80,7 @@ public function testBeforeClean() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testAfter() { @@ -102,7 +102,7 @@ public function testAfter() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testAfterNotApplicable() { diff --git a/tests/system/HTTP/ContentSecurityPolicyTest.php b/tests/system/HTTP/ContentSecurityPolicyTest.php index dea6bcf336ec..b7294a55dccb 100644 --- a/tests/system/HTTP/ContentSecurityPolicyTest.php +++ b/tests/system/HTTP/ContentSecurityPolicyTest.php @@ -61,7 +61,7 @@ protected function work(string $parm = 'Hello') /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testExistence() { @@ -73,7 +73,7 @@ public function testExistence() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testReportOnly() { @@ -86,7 +86,7 @@ public function testReportOnly() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testDefaults() { @@ -105,7 +105,7 @@ public function testDefaults() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testChildSrc() { @@ -122,7 +122,7 @@ public function testChildSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testConnectSrc() { @@ -138,7 +138,7 @@ public function testConnectSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testFontSrc() { @@ -156,7 +156,7 @@ public function testFontSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testFormAction() { @@ -174,7 +174,7 @@ public function testFormAction() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testFrameAncestor() { @@ -191,7 +191,7 @@ public function testFrameAncestor() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testFrameSrc() { @@ -208,7 +208,7 @@ public function testFrameSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testImageSrc() { @@ -225,7 +225,7 @@ public function testImageSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testMediaSrc() { @@ -242,7 +242,7 @@ public function testMediaSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testManifestSrc() { @@ -259,7 +259,7 @@ public function testManifestSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testPluginType() { @@ -276,7 +276,7 @@ public function testPluginType() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testPluginArray() { @@ -291,7 +291,7 @@ public function testPluginArray() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testObjectSrc() { @@ -308,7 +308,7 @@ public function testObjectSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testScriptSrc() { @@ -325,7 +325,7 @@ public function testScriptSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testStyleSrc() { @@ -342,7 +342,7 @@ public function testStyleSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testBaseURIDefault() { @@ -355,7 +355,7 @@ public function testBaseURIDefault() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testBaseURI() { @@ -369,7 +369,7 @@ public function testBaseURI() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testBaseURIRich() { @@ -383,7 +383,7 @@ public function testBaseURIRich() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testDefaultSrc() { @@ -399,7 +399,7 @@ public function testDefaultSrc() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testReportURI() { @@ -414,7 +414,7 @@ public function testReportURI() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testSandboxFlags() { @@ -430,7 +430,7 @@ public function testSandboxFlags() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testUpgradeInsecureRequests() { @@ -444,7 +444,7 @@ public function testUpgradeInsecureRequests() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testBodyEmpty() { @@ -457,7 +457,7 @@ public function testBodyEmpty() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testBodyScriptNonce() { @@ -534,7 +534,7 @@ public function testBodyStyleNonceDisableAutoNonce() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testBodyStyleNonce() { @@ -573,7 +573,7 @@ public function testBodyStyleNonceCustomStyleTag() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testHeaderWrongCaseNotFound() { @@ -586,7 +586,7 @@ public function testHeaderWrongCaseNotFound() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testHeaderIgnoreCase() { @@ -599,7 +599,7 @@ public function testHeaderIgnoreCase() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testCSPDisabled() { @@ -630,7 +630,7 @@ public function testGetStyleNonce() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testHeaderScriptNonceEmittedOnceGetScriptNonceCalled() { diff --git a/tests/system/HTTP/DownloadResponseTest.php b/tests/system/HTTP/DownloadResponseTest.php index 0c25faa3af99..fe320705b290 100644 --- a/tests/system/HTTP/DownloadResponseTest.php +++ b/tests/system/HTTP/DownloadResponseTest.php @@ -300,7 +300,7 @@ public function testPretendOutput() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testRealOutput() { diff --git a/tests/system/HTTP/IncomingRequestTest.php b/tests/system/HTTP/IncomingRequestTest.php index e93a47b09832..ff9e105661ca 100644 --- a/tests/system/HTTP/IncomingRequestTest.php +++ b/tests/system/HTTP/IncomingRequestTest.php @@ -124,7 +124,7 @@ public function testCanGetOldInputArrayWithSESSION() * @see https://github.com/codeigniter4/CodeIgniter4/issues/1492 * * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testCanGetOldInputArrayWithSessionService() { diff --git a/tests/system/HTTP/RedirectResponseTest.php b/tests/system/HTTP/RedirectResponseTest.php index eeedbd92b90a..6f91ad6ad93d 100644 --- a/tests/system/HTTP/RedirectResponseTest.php +++ b/tests/system/HTTP/RedirectResponseTest.php @@ -117,7 +117,7 @@ public function testRedirectRelativeConvertsToFullURI() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testWithInput() { @@ -137,7 +137,7 @@ public function testWithInput() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testWithValidationErrors() { @@ -157,7 +157,7 @@ public function testWithValidationErrors() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testWith() { @@ -173,7 +173,7 @@ public function testWith() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testRedirectBack() { @@ -189,7 +189,7 @@ public function testRedirectBack() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testRedirectBackMissing() { @@ -204,7 +204,7 @@ public function testRedirectBackMissing() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled * * @see https://github.com/codeigniter4/CodeIgniter4/issues/2119 */ @@ -245,7 +245,7 @@ public function testWithCookies() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testWithCookiesWithEmptyCookies() { diff --git a/tests/system/HTTP/ResponseSendTest.php b/tests/system/HTTP/ResponseSendTest.php index 85009618f0b3..d482582e2207 100644 --- a/tests/system/HTTP/ResponseSendTest.php +++ b/tests/system/HTTP/ResponseSendTest.php @@ -44,7 +44,7 @@ final class ResponseSendTest extends CIUnitTestCase /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testHeadersMissingDate() { @@ -77,7 +77,7 @@ public function testHeadersMissingDate() * it makes sure that sending gives CSP a chance to do its thing. * * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testHeadersWithCSP() { @@ -113,7 +113,7 @@ public function testHeadersWithCSP() * @see https://github.com/codeigniter4/CodeIgniter4/issues/1393 * * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testRedirectResponseCookies() { diff --git a/tests/system/Helpers/FormHelperTest.php b/tests/system/Helpers/FormHelperTest.php index 4e2e0324860b..6984e07df55a 100644 --- a/tests/system/Helpers/FormHelperTest.php +++ b/tests/system/Helpers/FormHelperTest.php @@ -816,7 +816,7 @@ public function testSetCheckboxWithValueZero() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testSetRadioFromSessionOldInput() { @@ -836,7 +836,7 @@ public function testSetRadioFromSessionOldInput() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testSetRadioFromPost() { @@ -849,7 +849,7 @@ public function testSetRadioFromPost() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testSetRadioFromPostWithValueZero() { diff --git a/tests/system/Test/TestCaseEmissionsTest.php b/tests/system/Test/TestCaseEmissionsTest.php index 64f21b121734..981fa66fec5f 100644 --- a/tests/system/Test/TestCaseEmissionsTest.php +++ b/tests/system/Test/TestCaseEmissionsTest.php @@ -42,7 +42,7 @@ final class TestCaseEmissionsTest extends CIUnitTestCase /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testHeadersEmitted() { @@ -70,7 +70,7 @@ public function testHeadersEmitted() /** * @runInSeparateProcess - * @preserveGlobalState disabled + * @preserveGlobalState disabled */ public function testHeadersNotEmitted() {