1 | <?php |
||
18 | abstract class RequestHandlerTestCase extends PHPUnit_Framework_TestCase |
||
19 | { |
||
20 | /** |
||
21 | * @var RequestHandler |
||
22 | */ |
||
23 | protected $handler; |
||
24 | |||
25 | /** |
||
26 | * @return RouteProviderInterface |
||
27 | */ |
||
28 | abstract protected function getRoutes() : RouteProviderInterface; |
||
29 | |||
30 | public function setUp() |
||
35 | |||
36 | /** |
||
37 | * @param string $method |
||
38 | * @param string $uri |
||
39 | * @param array $get |
||
40 | * @param array $post |
||
41 | * |
||
42 | * @return ResponseInterface |
||
43 | */ |
||
44 | public function request($method, $uri, array $get = [], array $post = []) |
||
53 | } |
||
54 |