com php-src: adding test phpt: tests/output/bug63162.phpt

From: Date: Mon, 01 Oct 2012 02:20:44 +0000
Subject: com php-src: adding test phpt: tests/output/bug63162.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-70276@lists.php.net to get a copy of this message
Commit: 6ec6b208e828ef675af9b332b19282ae0e83a2e2 Author: husman <husman85@gamersdig.com> Thu, 27 Sep 2012 00:54:42 -0400 Committer: Stanislav Malyshev <stas@php.net> Sun, 30 Sep 2012 19:20:44 -0700 Parents: 491b1efacb995cd857f01f3b2d1b7d70a2384e46 Branches: PHP-5.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6ec6b208e828ef675af9b332b19282ae0e83a2e2 Log: adding test phpt Changed paths: A tests/output/bug63162.phpt Diff: diff --git a/tests/output/bug63162.phpt b/tests/output/bug63162.phpt new file mode 100644 index 0000000..a003cea --- /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-- +<?php +var_dump(parse_url('http://user:pass@host')); +var_dump(parse_url('//user:pass@host')); +var_dump(parse_url('//user@host')); +?> +--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-- +<?php +var_dump(parse_url('http://user:pass@host')); +var_dump(parse_url('//user:pass@host')); +var_dump(parse_url('//user@host')); +?> +--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" +}

« previous php.cvs (#70276) next »