public function testCookieHttpOnlyIsMutable()
 {
     $this->getModel($this->validatorMock);
     $value = ini_get('session.cookie_httponly') ? false : true;
     $this->config->setCookieHttpOnly($value);
     $this->assertEquals($value, $this->config->getCookieHttpOnly());
 }
예제 #2
0
 public function testSetCookieHttpOnlyInOptions()
 {
     $this->_model->setCookieHttpOnly(true);
     $this->assertTrue($this->_model->getCookieHttpOnly());
 }
예제 #3
0
 public function testCookieHttpOnlyAltersIniSetting()
 {
     $value = ini_get('session.cookie_httponly') ? false : true;
     $this->config->setCookieHttpOnly($value);
     $this->assertEquals($value, ini_get('session.cookie_httponly'));
 }