From baf51652ca70eeb2621dde6d2e2299cd41a1cad7 Mon Sep 17 00:00:00 2001 From: Marco van 't Wout Date: Tue, 4 Jun 2024 14:06:43 +0200 Subject: [PATCH] Attempt to fix failing unit tests that use runInSeparateProcess --- tests/framework/web/CCookieCollectionTest.php | 2 ++ tests/framework/web/CHttpSessionTest.php | 1 + tests/framework/web/auth/CWebUserTest.php | 2 ++ 3 files changed, 5 insertions(+) diff --git a/tests/framework/web/CCookieCollectionTest.php b/tests/framework/web/CCookieCollectionTest.php index f217421b4..999ee90cd 100644 --- a/tests/framework/web/CCookieCollectionTest.php +++ b/tests/framework/web/CCookieCollectionTest.php @@ -38,6 +38,7 @@ class CCookieCollectionTest extends CTestCase } /** * @runInSeparateProcess + * @preserveGlobalState disabled * @outputBuffering enabled */ public function testAdd() @@ -59,6 +60,7 @@ class CCookieCollectionTest extends CTestCase } /** * @runInSeparateProcess + * @preserveGlobalState disabled * @outputBuffering enabled */ public function testRemove() diff --git a/tests/framework/web/CHttpSessionTest.php b/tests/framework/web/CHttpSessionTest.php index d904b028e..cab82abf4 100644 --- a/tests/framework/web/CHttpSessionTest.php +++ b/tests/framework/web/CHttpSessionTest.php @@ -16,6 +16,7 @@ class CHttpSessionTest extends CTestCase { * @covers CHttpSession::setGCProbability * * @runInSeparateProcess + * @preserveGlobalState disabled */ public function testSetGet() { Yii::app()->setComponents(array('session' => array( diff --git a/tests/framework/web/auth/CWebUserTest.php b/tests/framework/web/auth/CWebUserTest.php index 12e630537..bdfec6aea 100644 --- a/tests/framework/web/auth/CWebUserTest.php +++ b/tests/framework/web/auth/CWebUserTest.php @@ -31,6 +31,7 @@ class CWebUserTest extends CTestCase /** * @runInSeparateProcess + * @preserveGlobalState disabled * @outputBuffering enabled * @dataProvider booleanProvider */ @@ -59,6 +60,7 @@ class CWebUserTest extends CTestCase /** * @runInSeparateProcess + * @preserveGlobalState disabled * @outputBuffering enabled */ public function testCheckAccess()