示例#1
0
 /**
  * Ensure that default, get, and set work for the sessionTokenName option
  *
  * @return void
  */
 public function testSessionTokenName()
 {
     $auth = new Zend_Auth(new Zend_AuthTest_Success_Adapter());
     $this->assertTrue(Zend_Auth::SESSION_TOKEN_NAME_DEFAULT === $auth->getSessionTokenName());
     $sessionTokenName = 'Some Token Name';
     $auth->setSessionTokenName($sessionTokenName);
     $this->assertTrue($auth->getSessionTokenName() === $sessionTokenName);
     $auth = new Zend_Auth(new Zend_AuthTest_Success_Adapter(), true, Zend_Auth::SESSION_NAMESPACE_DEFAULT, $sessionTokenName);
     $this->assertTrue($auth->getSessionTokenName() === $sessionTokenName);
 }