Skip to content

Commit

Permalink
A few more tests for serverHostnameProvider()
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Mar 20, 2012
1 parent 89635e9 commit 647f23a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/Zend/Http/PhpEnvironment/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
);
}

Expand Down

0 comments on commit 647f23a

Please sign in to comment.