Skip to content

Commit 647f23a

Browse files
committed
A few more tests for serverHostnameProvider()
1 parent 89635e9 commit 647f23a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/Zend/Http/PhpEnvironment/RequestTest.php

+27
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,33 @@ public static function serverHostnameProvider()
249249
'test.example.com',
250250
'/news',
251251
),
252+
array(
253+
array(
254+
'HTTP_HOST' => 'test.example.com',
255+
'REQUEST_URI' => 'http://test.example.com/news',
256+
),
257+
'test.example.com',
258+
'/news',
259+
),
260+
array(
261+
array(
262+
'SERVER_NAME' => 'test.example.com',
263+
'SERVER_PORT' => '8080',
264+
'REQUEST_URI' => 'http://test.example.com/news',
265+
),
266+
'test.example.com',
267+
'/news',
268+
),
269+
array(
270+
array(
271+
'SERVER_NAME' => 'test.example.com',
272+
'SERVER_PORT' => '443',
273+
'HTTPS' => 'on',
274+
'REQUEST_URI' => 'https://test.example.com/news',
275+
),
276+
'test.example.com',
277+
'/news',
278+
),
252279
);
253280
}
254281

0 commit comments

Comments
 (0)