Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | abstract class AbstractMiddlewareTest extends TestCase |
||
13 | { |
||
14 | protected function getDelegate() : DelegateInterface |
||
15 | { |
||
16 | return new class implements DelegateInterface { |
||
17 | |||
18 | /** |
||
19 | * Dispatch the next available middleware and return the response. |
||
20 | * |
||
21 | * @param ServerRequestInterface $request |
||
22 | * |
||
23 | * @return ResponseInterface |
||
24 | */ |
||
25 | public function process(ServerRequestInterface $request) |
||
31 | } |