public function GetAllHeadersTest::testWorks in Lockr 7.3
@dataProvider testWorksData
File
- vendor/
ralouphie/ getallheaders/ tests/ GetAllHeadersTest.php, line 9
Class
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.");
}