You are here

public function GetAllHeadersTest::testWorks in Lockr 7.3

@dataProvider testWorksData

File

vendor/ralouphie/getallheaders/tests/GetAllHeadersTest.php, line 9

Class

GetAllHeadersTest

Code

public function testWorks($test_type, $expected, $server) {
  foreach ($server as $key => $val) {
    $_SERVER[$key] = $val;
  }
  $result = getallheaders();
  $this
    ->assertEquals($expected, $result, "Error testing {$test_type} works.");
}