X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fparse_params_001.phpt;h=bbfa63b3b936c80964af01e93280a7d5860fee8a;hp=1dc452eddf0fbfe630203acaca70fea5274deab0;hb=e29a410679b63b8f96b6890d1418f39d9ed489cc;hpb=614f707afdcca47e4cc6cdd5eb8926c363be909f diff --git a/tests/parse_params_001.phpt b/tests/parse_params_001.phpt index 1dc452e..bbfa63b 100644 --- a/tests/parse_params_001.phpt +++ b/tests/parse_params_001.phpt @@ -11,12 +11,13 @@ var_dump(http_parse_params('text/html; charset=iso-8859-1')); var_dump(http_parse_params('text/html; charset="iso-8859-1"')); var_dump(http_parse_params('attachment; filename="gol;got,a.ext"')); var_dump(http_parse_params('public, must-revalidate, max-age=0')); -var_dump(http_parse_params('a')->params[0]); -var_dump(http_parse_params('a=b')->params[0]); +$p = http_parse_params('a'); var_dump($p->params[0]); +$p = http_parse_params('a=b'); var_dump($p->params[0]); echo "Done\n"; +?> --EXPECTF-- %sTEST -object(stdClass)#%d (%d) { +object(stdClass)%s { ["params"]=> array(2) { [0]=> @@ -28,7 +29,7 @@ object(stdClass)#%d (%d) { } } } -object(stdClass)#%d (%d) { +object(stdClass)%s { ["params"]=> array(2) { [0]=> @@ -40,7 +41,7 @@ object(stdClass)#%d (%d) { } } } -object(stdClass)#%d (%d) { +object(stdClass)%s { ["params"]=> array(2) { [0]=> @@ -52,7 +53,7 @@ object(stdClass)#%d (%d) { } } } -object(stdClass)#%d (%d) { +object(stdClass)%s { ["params"]=> array(3) { [0]=>