File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3535 }
3636 },
3737 "require" : {
38- "php" : " ^7.4" ,
38+ "php" : " ^7.4 || ^8.0 " ,
3939 "flightphp/core" : " ^3.16"
4040 }
4141}
Original file line number Diff line number Diff line change @@ -93,11 +93,11 @@ public function end($content)
9393 $ app ->json (['test ' => 'test ' ]);
9494 });
9595 $ Bridge = new \flight \AsyncBridge ($ app );
96-
96+ ob_start ();
9797 $ Response = $ Bridge ->processRequest ($ Swoole_Async_Request , $ Swoole_Async_Response );
98-
98+ ob_end_clean ();
9999 $ this ->assertInstanceOf (\flight \AsyncResponseInterface::class, $ Response );
100- $ this ->assertEquals ('application/json; charset=utf-8 ' , $ Response ->getResponse ()->header ['content-type ' ]);
100+ $ this ->assertEquals ('application/json ' , $ Response ->getResponse ()->header ['content-type ' ]);
101101 $ this ->assertEquals (200 , $ Response ->getResponse ()->status );
102102 $ this ->assertEquals ('{"test":"test"} ' , $ Response ->getResponse ()->content );
103103 }
You can’t perform that action at this time.
0 commit comments