public function testRefererCheckMayBeEmpty()
 {
     $this->getModel($this->validatorMock);
     $this->config->setOption('referer_check', '');
     $this->assertEquals('', $this->config->getOption('referer_check'));
 }
Beispiel #2
0
 public function testRefererCheckMayBeEmpty()
 {
     $this->_model->setOption('referer_check', '');
     $this->assertEquals('', $this->_model->getOption('referer_check'));
 }
Beispiel #3
0
 public function testRefererCheckAltersIniSetting()
 {
     $this->config->setOption('referer_check', 'BARBAZ');
     $this->assertEquals('BARBAZ', ini_get('session.referer_check'));
 }