public function testSessionIdInitFromManager() { $name = 'MySessionCookie'; $_COOKIE[$name] = 'bar'; $mgr = new AfsUserSessionManager('blabla', $name); $query = new AfsQuery(); $user_id = $query->get_user_id(); $session_id = $query->get_session_id(); $query = $query->initialize_user_and_session_id($mgr); $this->assertEquals($user_id, $query->get_user_id()); $this->assertFalse($session_id == $query->get_session_id()); }