projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- typos
[m6w6/ext-http]
/
tests
/
HttpRequest_001.phpt
diff --git
a/tests/HttpRequest_001.phpt
b/tests/HttpRequest_001.phpt
index ec28bdfbe8f4b516bb1c2ba0ee8a70fb5642ffb8..cd6ae675a7eeba138f0d362728acac294ea9e2a8 100644
(file)
--- a/
tests/HttpRequest_001.phpt
+++ b/
tests/HttpRequest_001.phpt
@@
-4,13
+4,13
@@
HttpRequest options
<?php
include 'skip.inc';
checkver(5);
<?php
include 'skip.inc';
checkver(5);
+checkcls('HttpRequest');
?>
--FILE--
<?php
echo "-TEST\n";
?>
--FILE--
<?php
echo "-TEST\n";
-$r1 = new HttpRequest;
+$r1 = new HttpRequest
(null, 0, array('redirect'=>11, 'headers'=>array('X-Foo'=>'Bar')))
;
$r2 = new HttpRequest;
$r2 = new HttpRequest;
-$r1->setOptions(array('redirect'=>11, 'headers'=>array('X-Foo'=>'Bar')));
$r2->setOptions(array('redirect'=>99, 'headers'=>array('X-Bar'=>'Foo')));
$o1 = $r1->getOptions();
$o2 = $r2->getOptions();
$r2->setOptions(array('redirect'=>99, 'headers'=>array('X-Bar'=>'Foo')));
$o1 = $r1->getOptions();
$o2 = $r2->getOptions();