Exemplo n.º 1
0
 /**
  *
  */
 public function testClearWillRemoveValues()
 {
     $this->instance->setPrivateKey('privateKey');
     $this->instance->setStatus('initStatus');
     $this->instance->prepareDecryptAll('user', 'key');
     $this->assertNotEmpty(self::$tempStorage);
     $this->instance->clear();
     $this->assertEmpty(self::$tempStorage);
 }
Exemplo n.º 2
0
 /**
  * remove keys from session during logout
  */
 public function logout()
 {
     $this->session->clear();
 }
Exemplo n.º 3
0
 /**
  *
  */
 public function testClearWillRemoveValues()
 {
     $this->instance->clear();
     $this->assertEmpty(self::$tempStorage);
 }