Пример #1
0
 public function testAuthenticationSessionData()
 {
     $this->initializeManager(true);
     $this->assertNull($this->manager->getAuthenticationSessionData('foo'));
     $this->manager->setAuthenticationSessionData('foo', 'foo!');
     $this->manager->setAuthenticationSessionData('bar', 'bar!');
     $this->assertSame('foo!', $this->manager->getAuthenticationSessionData('foo'));
     $this->assertSame('bar!', $this->manager->getAuthenticationSessionData('bar'));
     $this->manager->removeAuthenticationSessionData('foo');
     $this->assertNull($this->manager->getAuthenticationSessionData('foo'));
     $this->assertSame('bar!', $this->manager->getAuthenticationSessionData('bar'));
     $this->manager->removeAuthenticationSessionData('bar');
     $this->assertNull($this->manager->getAuthenticationSessionData('bar'));
     $this->manager->setAuthenticationSessionData('foo', 'foo!');
     $this->manager->setAuthenticationSessionData('bar', 'bar!');
     $this->manager->removeAuthenticationSessionData(null);
     $this->assertNull($this->manager->getAuthenticationSessionData('foo'));
     $this->assertNull($this->manager->getAuthenticationSessionData('bar'));
 }