From 13dc652c45a4a0b4dc219e46065bb3310229cedc Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 27 Jan 2006 10:17:30 +0000 Subject: [PATCH] - add/update tests --- tests/build_url_002.phpt | 2 +- tests/build_url_004.phpt | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 tests/build_url_004.phpt 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 -- 2.30.2