11 $c = new http\Cookie("icanhas=flags; secure; httpOnly");
12 var_dump(http\Cookie::SECURE === ($c->getFlags() & http\Cookie::SECURE));
13 var_dump(http\Cookie::HTTPONLY === ($c->getFlags() & http\Cookie::HTTPONLY));
14 $c->setFlags($c->getFlags() ^ http\Cookie::SECURE);
15 var_dump(!($c->getFlags() & http\Cookie::SECURE));
16 var_dump(http\Cookie::HTTPONLY === ($c->getFlags() & http\Cookie::HTTPONLY));
17 $c->setFlags($c->getFlags() ^ http\Cookie::HTTPONLY);
18 var_dump(!($c->getFlags() & http\Cookie::SECURE));
19 var_dump(!($c->getFlags() & http\Cookie::HTTPONLY));
20 var_dump("icanhas=flags; " === $c->toString());
21 $c->setFlags(http\Cookie::SECURE|http\Cookie::HTTPONLY);
22 var_dump("icanhas=flags; secure; httpOnly; " === $c->toString());