From: Michael Wallner Date: Fri, 27 Jan 2006 10:17:30 +0000 (+0000) Subject: - add/update tests X-Git-Tag: RELEASE_0_22_0~16 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=13dc652c45a4a0b4dc219e46065bb3310229cedc;p=m6w6%2Fext-http - add/update tests --- diff --git a/tests/build_url_002.phpt b/tests/build_url_002.phpt index 9edac56..dbaa937 100644 --- a/tests/build_url_002.phpt +++ b/tests/build_url_002.phpt @@ -10,7 +10,7 @@ echo "-TEST\n"; echo http_build_url(parse_url("http://example.org/orig?q=1#f"), parse_url("https://www.example.com:9999/replaced#n")), "\n"; echo http_build_url(("http://example.org/orig?q=1#f"), - ("https://www.example.com:9999/replaced#n"), $u), "\n"; + ("https://www.example.com:9999/replaced#n"), 0, $u), "\n"; print_r($u); echo "Done\n"; ?> diff --git a/tests/build_url_004.phpt b/tests/build_url_004.phpt new file mode 100644 index 0000000..118ca7e --- /dev/null +++ b/tests/build_url_004.phpt @@ -0,0 +1,22 @@ +--TEST-- +http_build_url flags +--SKPIF-- + +--FILE-- + +--EXPECTF-- +%sTEST +http://www.example.com/foo/baz +http://www.example.com/foo/baz +http://mike@www.example.com/foo/baz +http://www.example.com/?a=b&b=c +Done \ No newline at end of file