@@ -85,7 +85,6 @@ public function testMatchNotFound(): void
8585 $ request = $ builder ->create (ServerRequestInterface::class, [
8686 new WithReturn ('getMethod ' , [], 'GET ' ),
8787 new WithReturn ('getUri ' , [], $ uri ),
88- new WithReturn ('getRequestTarget ' , [], '/ ' ),
8988 ]);
9089
9190 /** @var RouteInterface $route */
@@ -112,7 +111,7 @@ public function testMatchNotFound(): void
112111 'type ' => 'https://datatracker.ietf.org/doc/html/rfc2616#section-10.4.5 ' ,
113112 'status ' => 404 ,
114113 'title ' => 'Not Found ' ,
115- 'detail ' => 'The page "/" you are looking for could not be found. Check the address bar to ensure your URL is spelled correctly . ' ,
114+ 'detail ' => 'The path "/" you are looking for could not be found. ' ,
116115 'instance ' => null ,
117116 ], $ e ->jsonSerialize ());
118117 }
@@ -131,7 +130,6 @@ public function testMatchMethodNotAllowed(): void
131130 $ request = $ builder ->create (ServerRequestInterface::class, [
132131 new WithReturn ('getMethod ' , [], 'POST ' ),
133132 new WithReturn ('getUri ' , [], $ uri ),
134- new WithReturn ('getRequestTarget ' , [], '/api/pets?offset=1&limit=20 ' ),
135133 ]);
136134
137135 /** @var RouteInterface $route */
@@ -158,7 +156,7 @@ public function testMatchMethodNotAllowed(): void
158156 'type ' => 'https://datatracker.ietf.org/doc/html/rfc2616#section-10.4.6 ' ,
159157 'status ' => 405 ,
160158 'title ' => 'Method Not Allowed ' ,
161- 'detail ' => 'Method "POST" at path "/api/pets?offset=1&limit=20 " is not allowed. Must be one of: "GET" ' ,
159+ 'detail ' => 'Method "POST" at path "/api/pets" is not allowed. Must be one of: "GET" ' ,
162160 'instance ' => null ,
163161 ], $ e ->jsonSerialize ());
164162 }
@@ -177,7 +175,6 @@ public function testMatchWithTokensNotMatch(): void
177175 $ request = $ builder ->create (ServerRequestInterface::class, [
178176 new WithReturn ('getMethod ' , [], 'GET ' ),
179177 new WithReturn ('getUri ' , [], $ uri ),
180- new WithReturn ('getRequestTarget ' , [], '/api/pets/1 ' ),
181178 ]);
182179
183180 /** @var RouteInterface $route */
@@ -204,7 +201,7 @@ public function testMatchWithTokensNotMatch(): void
204201 'type ' => 'https://datatracker.ietf.org/doc/html/rfc2616#section-10.4.5 ' ,
205202 'status ' => 404 ,
206203 'title ' => 'Not Found ' ,
207- 'detail ' => 'The page "/api/pets/1" you are looking for could not be found. Check the address bar to ensure your URL is spelled correctly . ' ,
204+ 'detail ' => 'The path "/api/pets/1" you are looking for could not be found. ' ,
208205 'instance ' => null ,
209206 ], $ e ->jsonSerialize ());
210207 }
0 commit comments