Posted by Ian Collins on 02/12/07 22:48
Rik wrote:
> 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>.
>
Thanks Rik, that's exactly what I'm after.
--
Ian Collins.
Navigation:
[Reply to this message]
|