X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fgh-issue6.phpt;fp=tests%2Fgh-issue6.phpt;h=3de34bd65fec8ff4964e42f073de7ad608d820a3;hb=c3f7d34f18cd62956f241092c67a38edf246328d;hp=0000000000000000000000000000000000000000;hpb=dbb10c775e24bf591305aa5b3946d4e94a500530;p=m6w6%2Fext-http diff --git a/tests/gh-issue6.phpt b/tests/gh-issue6.phpt new file mode 100644 index 0000000..3de34bd --- /dev/null +++ b/tests/gh-issue6.phpt @@ -0,0 +1,21 @@ +--TEST-- +url - unsafe characters +--SKIPIF-- + +--FILE-- +query; +echo "\n"; +echo (new http\Url("?id={\$id}"))->query; +echo "\n"; + +?> +===DONE=== +--EXPECT-- +Test +__utma=1152894289.1017686999.9107388726.1439222726.1494721726.1&__utmb=115739289.1.10.1437388726&__utmc=115883619&__utmx=-&__utmz=115111289.14310476.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)&__utmv=-&__utmk=112678937 +id={$id} +===DONE===