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()); }
public function testSetCookieHttpOnlyInOptions() { $this->_model->setCookieHttpOnly(true); $this->assertTrue($this->_model->getCookieHttpOnly()); }
public function testCookieHttpOnlyAltersIniSetting() { $value = ini_get('session.cookie_httponly') ? false : true; $this->config->setCookieHttpOnly($value); $this->assertEquals($value, ini_get('session.cookie_httponly')); }