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