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