Merge branch 'master' into phpng
[m6w6/ext-http] / tests / clientrequest002.phpt
1 --TEST--
2 client request content type
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 ?>
7 --FILE--
8 <?php
9
10 echo "Test\n";
11
12 $r = new http\Client\Request("POST", "http://localhost/");
13 var_dump($r === $r->setContentType($ct = "text/plain; charset=utf-8"));
14 var_dump($ct === $r->getContentType());
15
16 ?>
17 Done
18 --EXPECT--
19 Test
20 bool(true)
21 bool(true)
22 Done