/** * 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()); }
/** * 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()); }