Skip to content

Commit baf5165

Browse files
committed
Attempt to fix failing unit tests that use runInSeparateProcess
1 parent 1b95757 commit baf5165

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

tests/framework/web/CCookieCollectionTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function testConstructorCookieBuilding()
3838
}
3939
/**
4040
* @runInSeparateProcess
41+
* @preserveGlobalState disabled
4142
* @outputBuffering enabled
4243
*/
4344
public function testAdd()
@@ -59,6 +60,7 @@ public function testAdd()
5960
}
6061
/**
6162
* @runInSeparateProcess
63+
* @preserveGlobalState disabled
6264
* @outputBuffering enabled
6365
*/
6466
public function testRemove()

tests/framework/web/CHttpSessionTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ protected function checkProb($gcProb) {
1616
* @covers CHttpSession::setGCProbability
1717
*
1818
* @runInSeparateProcess
19+
* @preserveGlobalState disabled
1920
*/
2021
public function testSetGet() {
2122
Yii::app()->setComponents(array('session' => array(

tests/framework/web/auth/CWebUserTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function booleanProvider()
3131

3232
/**
3333
* @runInSeparateProcess
34+
* @preserveGlobalState disabled
3435
* @outputBuffering enabled
3536
* @dataProvider booleanProvider
3637
*/
@@ -59,6 +60,7 @@ public function testLoginLogout($destroySession)
5960

6061
/**
6162
* @runInSeparateProcess
63+
* @preserveGlobalState disabled
6264
* @outputBuffering enabled
6365
*/
6466
public function testCheckAccess()

0 commit comments

Comments
 (0)