Tests parsing HTTP response status line.
public function testStatusLine() {
// Grab the big array of test data from statusLineData().
$data = $this
->statusLineData();
foreach ($data as $test_case) {
$test_data = array_shift($test_case);
$expected = array_shift($test_case);
$outcome = _drupal_parse_response_status($test_data);
foreach (array_keys($expected) as $key) {
$this
->assertIdentical($outcome[$key], $expected[$key]);
}
}
}