X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fcookie007.phpt;fp=tests%2Fcookie007.phpt;h=1a7a4c3f69b35a1f59c56be56a922e4f87cf64c9;hb=4850e3ba188215f9d0cda9e7c0e7e011b340b7c7;hp=0000000000000000000000000000000000000000;hpb=1cf96ccdd9eec5efd69ea474636bcb9f7ab89bb8;p=m6w6%2Fext-http diff --git a/tests/cookie007.phpt b/tests/cookie007.phpt new file mode 100644 index 0000000..1a7a4c3 --- /dev/null +++ b/tests/cookie007.phpt @@ -0,0 +1,37 @@ +--TEST-- +cookies max-age +--SKIPIF-- + +--INI-- +date.timezone=UTC +--FILE-- +getCookie("this")); +var_dump($c->getMaxAge()); +$o = clone $c; +$t = 54321; +$o->setMaxAge(); +var_dump($o->getMaxAge()); +var_dump(-1 != $c->getMaxAge()); +$o->setMaxAge($t); +var_dump($o->getMaxAge()); +var_dump($t != $c->getMaxAge()); +var_dump($o->toString()); + +?> +DONE +--EXPECT-- +Test +string(7) "max-age" +int(12345) +int(-1) +bool(true) +int(54321) +bool(true) +string(29) "this=max-age; max-age=54321; " +DONE