diff --git a/tests/Zend/Http/PhpEnvironment/RequestTest.php b/tests/Zend/Http/PhpEnvironment/RequestTest.php index 1192e1949bc..28a269e60d5 100644 --- a/tests/Zend/Http/PhpEnvironment/RequestTest.php +++ b/tests/Zend/Http/PhpEnvironment/RequestTest.php @@ -249,6 +249,33 @@ public static function serverHostnameProvider() 'test.example.com', '/news', ), + array( + array( + 'HTTP_HOST' => 'test.example.com', + 'REQUEST_URI' => 'http://test.example.com/news', + ), + 'test.example.com', + '/news', + ), + array( + array( + 'SERVER_NAME' => 'test.example.com', + 'SERVER_PORT' => '8080', + 'REQUEST_URI' => 'http://test.example.com/news', + ), + 'test.example.com', + '/news', + ), + array( + array( + 'SERVER_NAME' => 'test.example.com', + 'SERVER_PORT' => '443', + 'HTTPS' => 'on', + 'REQUEST_URI' => 'https://test.example.com/news', + ), + 'test.example.com', + '/news', + ), ); }