From 6ec6b208e828ef675af9b332b19282ae0e83a2e2 Mon Sep 17 00:00:00 2001 From: husman Date: Thu, 27 Sep 2012 00:54:42 -0400 Subject: [PATCH] adding test phpt --- tests/output/bug63162.phpt | 79 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 tests/output/bug63162.phpt diff --git a/tests/output/bug63162.phpt b/tests/output/bug63162.phpt new file mode 100644 index 0000000000..a003ceafb0 --- /dev/null +++ b/tests/output/bug63162.phpt @@ -0,0 +1,79 @@ +--TEST-- +Test parse_url() for bug #63162 +--DESCRIPTION-- +This test covers tests the inputs: +[0]=> http://user:pass@host +[1]=> //user:pass@host +[2]=> //user@host +--FILE-- + +--EXPECTF-- +array(4) { + ["scheme"]=> + string(4) "http" + ["host"]=> + string(4) "host" + ["user"]=> + string(4) "user" + ["pass"]=> + string(4) "pass" +} + +array(3) { + ["host"]=> + string(4) "host" + ["user"]=> + string(4) "user" + ["pass"]=> + string(4) "pass" +} + +array(2) { + ["host"]=> + string(4) "host" + ["user"]=> + string(4) "user" +}--TEST-- +Test parse_url() for bug #63162 +--DESCRIPTION-- +This test covers tests the inputs: +[0]=> http://user:pass@host +[1]=> //user:pass@host +[2]=> //user@host +--FILE-- + +--EXPECT-- +array(4) { + ["scheme"]=> + string(4) "http" + ["host"]=> + string(4) "host" + ["user"]=> + string(4) "user" + ["pass"]=> + string(4) "pass" +} + +array(3) { + ["host"]=> + string(4) "host" + ["user"]=> + string(4) "user" + ["pass"]=> + string(4) "pass" +} + +array(2) { + ["host"]=> + string(4) "host" + ["user"]=> + string(4) "user" +} -- 2.40.0