Ian Collins wrote:
I'm using PHPUnit to test some PHP scripts and I'd like to know if there
is a means of checking which cookies have been set by setcookie() in a
function under test.
There is _no_ way to test which cookies have explicitly been set by
setcookie(). A cookie is a cookie, and can be set a lot of different ways.
You can check however which cookies this particular script tries to set:
<http://www.php.net/headers_list>.
And offcourse, you can monitor changes in the $_COOKIE array after a new
pagerequest.
--
Rik Wasmus