/** * Web server detection test * * @param string $server Server identification * @param boolean $iis Whether server should be detected as IIS * * @return void * * @dataProvider serverNames */ public function testCheckWebServer($server, $iis) { $_SERVER['SERVER_SOFTWARE'] = $server; $this->object->checkWebServer(); $this->assertEquals($iis, $this->object->get('PMA_IS_IIS')); unset($_SERVER['SERVER_SOFTWARE']); }