1010
1111namespace chillerlan \HTTPTest \Utils ;
1212
13- use chillerlan \HTTP \Utils \Header ;
13+ use chillerlan \HTTP \Utils \HeaderUtil ;
1414
1515/**
1616 *
1717 */
18- class HeaderTest extends TestAbstract{
18+ class HeaderUtilTest extends TestAbstract{
1919
2020 public function headerDataProvider ():array {
2121 return [
@@ -40,7 +40,7 @@ public function headerDataProvider():array{
4040 * @param array $normalized
4141 */
4242 public function testNormalizeHeaders (array $ headers , array $ normalized ):void {
43- $ this ::assertSame ($ normalized , Header ::normalize ($ headers ));
43+ $ this ::assertSame ($ normalized , HeaderUtil ::normalize ($ headers ));
4444 }
4545
4646 public function testCombineHeaderFields ():void {
@@ -60,11 +60,11 @@ public function testCombineHeaderFields():void{
6060 'Accept ' => 'foo, bar ' ,
6161 'X-Whatever ' => 'nope ' ,
6262 'X-Foo ' => 'bar, baz, what, nope '
63- ], Header ::normalize ($ headers ));
63+ ], HeaderUtil ::normalize ($ headers ));
6464
6565 $ r = $ this ->responseFactory ->createResponse ();
6666
67- foreach (Header ::normalize ($ headers ) as $ k => $ v ){
67+ foreach (HeaderUtil ::normalize ($ headers ) as $ k => $ v ){
6868 $ r = $ r ->withAddedHeader ($ k , $ v );
6969 }
7070
@@ -89,7 +89,7 @@ public function testCombinedCookieHeaders():void{
8989 'foo ' => 'foo=baz ' ,
9090 'whatever ' => 'whatever=nope; HttpOnly '
9191 ]
92- ], Header ::normalize ($ headers ));
92+ ], HeaderUtil ::normalize ($ headers ));
9393 }
9494
9595
0 commit comments