- tests fixup
authorMichael Wallner <mike@php.net>
Sat, 8 Oct 2005 20:42:16 +0000 (20:42 +0000)
committerMichael Wallner <mike@php.net>
Sat, 8 Oct 2005 20:42:16 +0000 (20:42 +0000)
tests/build_uri_001.phpt [new file with mode: 0644]
tests/negotiation_001.phpt
tests/redirect_002.phpt

diff --git a/tests/build_uri_001.phpt b/tests/build_uri_001.phpt
new file mode 100644 (file)
index 0000000..b80f52e
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+http_build_uri()
+--SKIPIF--
+<?php
+include 'skip.inc';
+?>
+--FILE--
+<?php
+$_SERVER['HTTP_HOST'] = 'www.example.com';
+$url = '/path/?query#anchor';
+echo "-TEST\n";
+printf("-%s-\n", http_build_uri($url));
+printf("-%s-\n", http_build_uri($url, 'https'));
+printf("-%s-\n", http_build_uri($url, 'https', 'ssl.example.com'));
+printf("-%s-\n", http_build_uri($url, 'ftp', 'ftp.example.com', 21));
+echo "Done\n";
+?>
+--EXPECTF--
+%sTEST
+-http://www.example.com/path/?query#anchor-
+-https://www.example.com/path/?query#anchor-
+-https://ssl.example.com/path/?query#anchor-
+-ftp://ftp.example.com/path/?query#anchor-
+Done
index cb11d4328e5ccc4f6e81f5850342e44a843e3106..e1af2ca4159de7444d02634b6ac8bd1aca4a10f8 100644 (file)
@@ -31,8 +31,8 @@ string(10) "iso-8859-1"
 string(10) "iso-8859-1"
 Array
 (
 string(10) "iso-8859-1"
 Array
 (
-    [de] => 500
-    [en] => 0.15
+    [de] => 900
+    [en] => 0.27
 )
 Array
 (
 )
 Array
 (
index d43e9adc76bea03a091720bb6d1a38111fb59c07..e577810b05f5c5d080d778fd6404da74cb043922 100644 (file)
@@ -4,6 +4,7 @@ http_redirect() with session
 <?php 
 include 'skip.inc';
 checkcgi();
 <?php 
 include 'skip.inc';
 checkcgi();
+checkext('session');
 ?>
 --ENV--
 HTTP_HOST=localhost
 ?>
 --ENV--
 HTTP_HOST=localhost