mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 18:47:33 +08:00 
			
		
		
		
	Fix tests for use_trans_id
This commit is contained in:
		| @ -47,8 +47,13 @@ class SessionTest extends TestCase | ||||
|         $oldUseTransparentSession = $session->getUseTransparentSessionID(); | ||||
|         $session->setUseTransparentSessionID(true); | ||||
|         $newUseTransparentSession = $session->getUseTransparentSessionID(); | ||||
|         if (PHP_VERSION_ID < 80400) { | ||||
|             $this->assertNotEquals($oldUseTransparentSession, $newUseTransparentSession); | ||||
|             $this->assertTrue($newUseTransparentSession); | ||||
|         } else { | ||||
|             $this->assertEquals($oldUseTransparentSession, $newUseTransparentSession); | ||||
|             $this->assertFalse($newUseTransparentSession); | ||||
|         } | ||||
|         //without this line phpunit will complain about risky tests due to unclosed buffer | ||||
|         $session->setUseTransparentSessionID(false); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Alex Negrila
					Alex Negrila