projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge branch 'master' of git.php.net:/pecl/http/pecl_http
[m6w6/ext-http]
/
tests
/
params001.phpt
diff --git
a/tests/params001.phpt
b/tests/params001.phpt
index ac52bf7a940c049f7555a83f740551a400f73e2b..5b28deed83a041d1c355fd3e5bc658bceb72f643 100644
(file)
--- a/
tests/params001.phpt
+++ b/
tests/params001.phpt
@@
-3,11
+3,12
@@
header params
--SKIPIF--
<?php
include "skipif.inc";
--SKIPIF--
<?php
include "skipif.inc";
+?>
--FILE--
<?php
echo "Test\n";
--FILE--
<?php
echo "Test\n";
-$ct = new http\Params("text/html; charset=utf-8");
+$ct = new http\Params("text/html; charset=utf-8"
, ",", ";", "=", 0
);
var_dump(
isset($ct["text/html"]),
var_dump(
isset($ct["text/html"]),
@@
-25,9
+26,10
@@
var_dump(
$ct["text/json"]["arguments"]["charset"]
);
$ct["text/json"]["arguments"]["charset"]
);
-var_dump((string) $ct);
+var_dump((string) $ct
,$ct
);
-echo "Done\n";
+?>
+DONE
--EXPECTF--
Test
bool(true)
--EXPECTF--
Test
bool(true)
@@
-37,4
+39,27
@@
bool(false)
bool(true)
string(10) "iso-8859-1"
string(%d) "text/json;charset=iso-8859-1"
bool(true)
string(10) "iso-8859-1"
string(%d) "text/json;charset=iso-8859-1"
-Done
+object(http\Params)#%d (5) {
+ ["params"]=>
+ array(1) {
+ ["text/json"]=>
+ array(2) {
+ ["value"]=>
+ bool(true)
+ ["arguments"]=>
+ array(1) {
+ ["charset"]=>
+ string(10) "iso-8859-1"
+ }
+ }
+ }
+ ["param_sep"]=>
+ string(1) ","
+ ["arg_sep"]=>
+ string(1) ";"
+ ["val_sep"]=>
+ string(1) "="
+ ["flags"]=>
+ int(0)
+}
+DONE