We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf4906 commit c6a1731Copy full SHA for c6a1731
composer.json
@@ -26,7 +26,7 @@
26
}
27
],
28
"require": {
29
- "amphp/http-server": "^1 || ^0.8",
+ "amphp/http-server": "^2 || ^1 || ^0.8",
30
"amphp/http": "^1",
31
"nikic/fast-route": "^1",
32
"cash/lrucache": "^1"
test/RouterTest.php
@@ -24,7 +24,7 @@ class RouterTest extends TestCase {
24
public function mockServer(): Server {
25
$options = new Options;
- $socket = $this->createMock(Socket\Server::class);
+ $socket = Socket\listen('127.0.0.1:0');
$server = new Server(
[$socket],
0 commit comments