/** * testSessionId method * * @return void */ public function testSessionId() { unset($_SESSION); $Session = new SessionComponent($this->ComponentCollection); $Session->check('test'); $this->assertEquals(session_id(), $Session->id()); }
/** * testSessionId method * * @return void */ public function testSessionId() { unset($_SESSION); $Session = new SessionComponent($this->ComponentCollection); CakeSession::start(); $this->assertEquals(session_id(), $Session->id()); }
/** * testSessionId method * * @access public * @return void */ function testSessionId() { unset($_SESSION); $Session = new SessionComponent(); $this->assertNull($Session->id()); }