コード例 #1
0
 /**
  * testSessionError method
  *
  * @return void
  */
 public function testSessionError()
 {
     $Session = new SessionComponent($this->ComponentCollection);
     $this->assertFalse($Session->error());
 }
コード例 #2
0
 /**
  * testSessionError method
  *
  * @return void
  */
 public function testSessionError()
 {
     CakeSession::$lastError = null;
     $Session = new SessionComponent($this->ComponentCollection);
     $this->assertFalse($Session->error());
 }
コード例 #3
0
ファイル: session.test.php プロジェクト: robksawyer/cakephp2x
 /**
  * testSessionError method
  *
  * @access public
  * @return void
  */
 function testSessionError()
 {
     $Session = new SessionComponent();
     $this->assertFalse($Session->error());
     Configure::write('Session.start', false);
     $Session = new SessionComponent();
     $this->assertFalse($Session->__active);
     $this->assertFalse($Session->error());
     Configure::write('Session.start', true);
 }