Emulate cookies for tests

This commit is contained in:
Michal Čihař 2012-04-27 10:11:04 +02:00
parent aaaaf3a6ed
commit f1cf8d440a

View File

@ -1566,6 +1566,9 @@ class PMA_Config
function removeCookie($cookie)
{
if (defined('TESTSUITE')) {
if (isset($_COOKIE[$cookie])) {
unset($_COOKIE[$cookie]);
}
return true;
}
return setcookie(
@ -1618,6 +1621,7 @@ class PMA_Config
$v = time() + $validity;
}
if (defined('TESTSUITE')) {
$_COOKIE[$cookie] = $value;
return true;
}
return setcookie(