travis: allow_failures
[m6w6/ext-http] / tests / cookie008.phpt
1 --TEST--
2 cookies path
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9 echo "Test\n";
10
11 $c = new http\Cookie("this=has a path; path=/down; ");
12 var_dump($c->getCookie("this"));
13 var_dump((string)$c);
14 var_dump($c->getPath());
15 $o = clone $c;
16 $p = "/up";
17 $o->setPath();
18 var_dump($o->getPath());
19 var_dump($c->getPath());
20 $o->setPath($p);
21 var_dump($o->getPath());
22 var_dump($c->getPath());
23 var_dump($o->toString());
24
25 ?>
26 DONE
27 --EXPECT--
28 Test
29 string(10) "has a path"
30 string(33) "this=has%20a%20path; path=/down; "
31 string(5) "/down"
32 NULL
33 string(5) "/down"
34 string(3) "/up"
35 string(5) "/down"
36 string(31) "this=has%20a%20path; path=/up; "
37 DONE