Ejemplo 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);
 }
Ejemplo n.º 2
0
 protected function updateSession($user, $privateKey)
 {
     $this->session->prepareDecryptAll($user, $privateKey);
 }