Skip to content

Commit c6a1731

Browse files
committed
Allow amphp/http-server ^2
1 parent ddf4906 commit c6a1731

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
],
2828
"require": {
29-
"amphp/http-server": "^1 || ^0.8",
29+
"amphp/http-server": "^2 || ^1 || ^0.8",
3030
"amphp/http": "^1",
3131
"nikic/fast-route": "^1",
3232
"cash/lrucache": "^1"

test/RouterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RouterTest extends TestCase {
2424
public function mockServer(): Server {
2525
$options = new Options;
2626

27-
$socket = $this->createMock(Socket\Server::class);
27+
$socket = Socket\listen('127.0.0.1:0');
2828

2929
$server = new Server(
3030
[$socket],

0 commit comments

Comments
 (0)