Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

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 ad26836 commit 752a5af
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/PhpEnvironment/RequestTest.php
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 752a5af

Please sign in to comment.