X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FHttpRequest_001.phpt;h=abe65065417eb4a06291abc39e1abcc867b9e208;hb=378dd0f912b3139f1a797cf19e7c4eb88d33f141;hp=3f5f2edfc7090814a05eb3104de96d00a87e22da;hpb=4a1c5914eccd82e0936f35f0804a9e35ed632f83;p=m6w6%2Fext-http diff --git a/tests/HttpRequest_001.phpt b/tests/HttpRequest_001.phpt index 3f5f2ed..abe6506 100644 --- a/tests/HttpRequest_001.phpt +++ b/tests/HttpRequest_001.phpt @@ -1,15 +1,16 @@ --TEST-- HttpRequest options --SKIPIF-- - --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,29 +22,30 @@ $r1 = null; $r2 = null; ?> --EXPECTF-- -%sArray +%sTEST +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)