示例#1
0
 /**
  * Test for absolute URI composition
  *
  * @return void
  *
  * @depends testCheckPmaAbsoluteUri
  */
 public function testCheckPmaAbsoluteUriScheme()
 {
     $_SERVER['HTTP_HOST'] = 'localhost';
     $_SERVER['HTTP_SCHEME'] = 'http';
     $_SERVER['HTTPS'] = 'off';
     $GLOBALS['PMA_PHP_SELF'] = 'index.php';
     $this->object->set('PmaAbsoluteUri', '');
     $this->object->checkPmaAbsoluteUri();
     $this->assertEquals("http://localhost/", $this->object->get('PmaAbsoluteUri'));
 }