示例#1
0
 /**
  * Test for getting root path
  *
  * @param string $request  The request URL used for phpMyAdmin
  * @param string $absolute The absolute URL used for phpMyAdmin
  * @param string $expected Expected root path
  *
  * @return void
  *
  * @dataProvider rootUris
  */
 public function testGetRootPath($request, $absolute, $expected)
 {
     $GLOBALS['PMA_PHP_SELF'] = $request;
     $this->object->set('PmaAbsoluteUri', $absolute);
     $this->assertEquals($expected, $this->object->getRootPath());
 }