- changelog
[m6w6/ext-http] / tests / cloning_001.phpt
1 --TEST--
2 cloning
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkmin(5);
7 checkcls('HttpRequest');
8 ?>
9 --FILE--
10 <?php
11 echo "-TEST\n";
12
13 $r1 = new HttpRequest;
14 $r2 = clone $r1;
15 $r1->setOptions(array('redirect' => 3));
16 var_dump($r1->getOptions() == $r2->getOptions());
17 $r1->setUrl('http://www.google.com/');
18 var_dump($r1->getUrl() == $r2->getUrl());
19 $r1->send();
20 var_dump($r1->getResponseInfo() == $r2->getResponseInfo());
21
22 echo "Done\n";
23 ?>
24 --EXPECTF--
25 %sTEST
26 bool(false)
27 bool(false)
28 bool(false)
29 Done