Skip to content

Commit cd2919d

Browse files
committed
update
1 parent f06e24d commit cd2919d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/swoole/tests/Unit/SymfonyHttpBridgeTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public function testThatSymfonyResponseIsReflected(): void
7373

7474
$response = $this->createMock(Response::class);
7575
$expectedHeaders = [
76-
['x-test', 'Swoole-Runtime'],
77-
['set-cookie', $fooCookie],
78-
['set-cookie', $barCookie],
76+
1 => ['x-test', 'Swoole-Runtime'],
77+
2 => ['set-cookie', $fooCookie],
78+
3 => ['set-cookie', $barCookie],
7979
];
8080
$response->expects(self::exactly(3))->method('header')->willReturnCallback(function ($key, $value) use ($expectedHeaders) {
8181
$this->assertEquals([$key, $value], array_shift($expectedHeaders));
@@ -100,9 +100,9 @@ public function testThatSymfonyStreamedResponseIsReflected(): void
100100

101101
$response = $this->createMock(Response::class);
102102
$expectedWrites = [
103-
"Foo\n",
104-
"Bar\n",
105-
'',
103+
1 => "Foo\n",
104+
2 => "Bar\n",
105+
3 => '',
106106
];
107107
$response->expects(self::exactly(3))->method('write')->willReturnCallback(function ($string) use ($expectedWrites) {
108108
$this->assertSame(array_shift($expectedWrites), $string);

0 commit comments

Comments
 (0)