X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2FHttpRequest_001.phpt;h=ddb0a43426b12d1765cf92bf1c4c689d79e42dd5;hp=8e0d6fab06c112793b1019cfa3fdc1695d6d4265;hb=99b27b9e44043e5ff1bd53f2a1e3b007cfd16a42;hpb=244c8484720c23fdb5d9d557ca180dc2b822a140 diff --git a/tests/HttpRequest_001.phpt b/tests/HttpRequest_001.phpt index 8e0d6fa..ddb0a43 100644 --- a/tests/HttpRequest_001.phpt +++ b/tests/HttpRequest_001.phpt @@ -1,15 +1,16 @@ --TEST-- HttpRequest options --SKIPIF-- - (int) PHP_VERSION) and die('skip PHP5 is required for Http classes'); +checkmin(5.3); +checkcls('HttpRequest'); ?> --FILE-- 11, 'headers'=>array('X-Foo'=>'Bar'))); $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(); @@ -21,32 +22,30 @@ $r1 = null; $r2 = null; ?> --EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - +%aTEST Array ( [0] => Array ( - [redirect] => 11 [headers] => Array ( [X-Foo] => Bar [X-Bar] => Foo ) + [redirect] => 11 ) [1] => Array ( - [redirect] => 99 [headers] => Array ( [X-Bar] => Foo [X-Foo] => Bar ) + [redirect] => 99 ) ) -bool(false) \ No newline at end of file +bool(false)