Skip to content

Commit 0dcd6da

Browse files
committed
Correct the inner header class for test
1 parent 9d22318 commit 0dcd6da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/swoole/tests/Unit/SymfonyHttpBridgeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
use Symfony\Component\HttpFoundation\BinaryFileResponse;
1010
use Symfony\Component\HttpFoundation\Cookie;
1111
use Symfony\Component\HttpFoundation\File\UploadedFile;
12-
use Symfony\Component\HttpFoundation\HeaderBag;
1312
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
1413
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
14+
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
1515
use Symfony\Component\HttpFoundation\StreamedResponse;
1616

1717
/**
@@ -64,7 +64,7 @@ public function testThatSymfonyResponseIsReflected(): void
6464
$barCookie = (string) new Cookie('bar', '234');
6565

6666
$sfResponse = $this->createMock(SymfonyResponse::class);
67-
$sfResponse->headers = new HeaderBag([
67+
$sfResponse->headers = new ResponseHeaderBag([
6868
'X-Test' => 'Swoole-Runtime',
6969
'Set-Cookie' => [$fooCookie, $barCookie],
7070
]);

0 commit comments

Comments
 (0)