File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments