Skip to content

Commit b3e57c8

Browse files
committed
wip
1 parent cc8ffd7 commit b3e57c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Benchmark/Http/Routing/Matching/GenericRouteMatcherBench.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use PhpBench\Attributes\ParamProviders;
1010
use PhpBench\Attributes\Revs;
1111
use PhpBench\Attributes\Warmup;
12+
use Tempest\Http\GenericRequest;
13+
use Tempest\Http\Method;
1214
use Tempest\Router\RouteConfig;
1315
use Tempest\Router\Routing\Construction\RouteConfigurator;
1416
use Tempest\Router\Routing\Matching\GenericRouteMatcher;
@@ -31,7 +33,7 @@ public function __construct()
3133
public function benchMatch(array $params): void
3234
{
3335
$this->matcher->match(
34-
new ServerRequest(uri: $params['uri'], method: 'GET'),
36+
new GenericRequest(Method::GET, $params['uri']),
3537
);
3638
}
3739

0 commit comments

Comments
 (0)