File tree Expand file tree Collapse file tree 4 files changed +4
-50
lines changed Expand file tree Collapse file tree 4 files changed +4
-50
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -82,13 +82,13 @@ public function getTrailers(): array
8282 return $ this ->trailers ;
8383 }
8484
85- public function setConnection (ConnectionInterface | Writable $ connection )
85+ public function setConnection (Writable $ connection )
8686 {
8787 $ this ->connection = $ connection ;
8888 return $ this ;
8989 }
9090
91- public function getConnection (): ConnectionInterface | Writable | null
91+ public function getConnection (): ? Writable
9292 {
9393 return $ this ->connection ;
9494 }
Original file line number Diff line number Diff line change 1111 */
1212namespace HyperfTest \HttpMessage ;
1313
14+ use Hyperf \Engine \Http \WritableConnection ;
1415use Hyperf \HttpMessage \Cookie \Cookie ;
15- use Hyperf \HttpMessage \Server \Connection \SwooleConnection ;
1616use Hyperf \HttpMessage \Server \Response ;
1717use Mockery ;
1818use PHPUnit \Framework \Attributes \CoversNothing ;
@@ -64,7 +64,7 @@ public function testWrite()
6464 $ swooleResponse ->shouldReceive ('write ' )->with ($ content )->once ()->andReturn (true );
6565
6666 $ response = $ this ->newResponse ();
67- $ response ->setConnection (new SwooleConnection ($ swooleResponse ));
67+ $ response ->setConnection (new WritableConnection ($ swooleResponse ));
6868 $ status = $ response ->write ($ content );
6969 $ this ->assertTrue ($ status );
7070 }
You can’t perform that action at this time.
0 commit comments