/**
  * testSessionDestroy method
  *
  * @return void
  */
 public function testSessionDestroy()
 {
     $Session = new SessionComponent($this->ComponentCollection);
     $Session->write('Test', 'some value');
     $this->assertEquals('some value', $Session->read('Test'));
     $Session->destroy('Test');
     $this->assertNull($Session->read('Test'));
 }
Exemplo n.º 2
0
 /**
  * testSessionDestroy method
  *
  * @access public
  * @return void
  */
 function testSessionDestroy()
 {
     $Session = new SessionComponent();
     $Session->write('Test', 'some value');
     $this->assertEqual($Session->read('Test'), 'some value');
     $Session->destroy('Test');
     $this->assertNull($Session->read('Test'));
 }