X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fparse_params_001.phpt;h=dde2780cff011bd6a9d648df4f93faa630561478;hp=1dc452eddf0fbfe630203acaca70fea5274deab0;hb=db5299a8b005bf625b4e34666b48e6cce8990482;hpb=976c6c8c58c93c4ab74e9c23e1cf5b31b2b1bd78 diff --git a/tests/parse_params_001.phpt b/tests/parse_params_001.phpt index 1dc452e..dde2780 100644 --- a/tests/parse_params_001.phpt +++ b/tests/parse_params_001.phpt @@ -11,12 +11,12 @@ 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 +28,7 @@ object(stdClass)#%d (%d) { } } } -object(stdClass)#%d (%d) { +object(stdClass)%s { ["params"]=> array(2) { [0]=> @@ -40,7 +40,7 @@ object(stdClass)#%d (%d) { } } } -object(stdClass)#%d (%d) { +object(stdClass)%s { ["params"]=> array(2) { [0]=> @@ -52,7 +52,7 @@ object(stdClass)#%d (%d) { } } } -object(stdClass)#%d (%d) { +object(stdClass)%s { ["params"]=> array(3) { [0]=>