Exemplo n.º 1
0
 /**
  * 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());
 }
Exemplo n.º 3
0
 /**
  * testSessionId method
  *
  * @access public
  * @return void
  */
 function testSessionId()
 {
     unset($_SESSION);
     $Session = new SessionComponent();
     $this->assertNull($Session->id());
 }