X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fparse_params_001.phpt;h=ab5a5b2f01a59bdabc25dac95de6fa06bdbd5b18;hb=bcd8a695c6dfc8463596cf97d886e32eec959417;hp=1dc452eddf0fbfe630203acaca70fea5274deab0;hpb=614f707afdcca47e4cc6cdd5eb8926c363be909f;p=m6w6%2Fext-http diff --git a/tests/parse_params_001.phpt b/tests/parse_params_001.phpt index 1dc452e..ab5a5b2 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) { +%aTEST +object(stdClass)%a { ["params"]=> array(2) { [0]=> @@ -28,7 +29,7 @@ object(stdClass)#%d (%d) { } } } -object(stdClass)#%d (%d) { +object(stdClass)%a { ["params"]=> array(2) { [0]=> @@ -40,7 +41,7 @@ object(stdClass)#%d (%d) { } } } -object(stdClass)#%d (%d) { +object(stdClass)%a { ["params"]=> array(2) { [0]=> @@ -52,7 +53,7 @@ object(stdClass)#%d (%d) { } } } -object(stdClass)#%d (%d) { +object(stdClass)%a { ["params"]=> array(3) { [0]=>