$server =
[ 'SOME_SERVER_VARIABLE' => 'value',
'SOME_SERVER_VARIABLE2' => 'value',
'ROOT' => 'value',
'HTTP_CONTENT_TYPE' => 'text/html',
'HTTP_CONTENT_LENGTH' => '0',
'HTTP_ETAG' => 'asdf',
'PHP_AUTH_USER' => 'foo',
'PHP_AUTH_PW' => 'bar',
];
$bag =
new ServerBag($server);
$this->
assertEquals([ 'CONTENT_TYPE' => 'text/html',
'CONTENT_LENGTH' => '0',
'ETAG' => 'asdf',
'AUTHORIZATION' => 'Basic '.
base64_encode('foo:bar'
),
'PHP_AUTH_USER' => 'foo',
'PHP_AUTH_PW' => 'bar',
],
$bag->
getHeaders());
}