com php-src: fix test and move to proper place: ext/standard/tests/url/bug63162.phpt tests/output/bug63162.phpt
| From: | Stanislav Malyshev | Date: | Mon, 01 Oct 2012 02:24:42 +0000 |
| Subject: | com php-src: fix test and move to proper place: ext/standard/tests/url/bug63162.phpt tests/output/bug63162.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70275@lists.php.net to get a copy of this message | ||
Commit: bf064112b746a77570aedc8a81a0a8b271c16cd5
Author: Stanislav Malyshev <stas@php.net> Sun, 30 Sep 2012 19:24:42 -0700
Parents: ad570991cf4433f281215bd7b7caddd95e83c54b
Branches: PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bf064112b746a77570aedc8a81a0a8b271c16cd5
Log:
fix test and move to proper place
Changed paths:
A ext/standard/tests/url/bug63162.phpt
D tests/output/bug63162.phpt
Diff:
diff --git a/ext/standard/tests/url/bug63162.phpt b/ext/standard/tests/url/bug63162.phpt
new file mode 100644
index 0000000..ea5205e
--- /dev/null
+++ b/ext/standard/tests/url/bug63162.phpt
@@ -0,0 +1,38 @@
+--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"
+}
diff --git a/tests/output/bug63162.phpt b/tests/output/bug63162.phpt
deleted file mode 100644
index 103a512..0000000
--- a/tests/output/bug63162.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---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"
-}