1 | <?php |
||
9 | class RoutingTestCase extends WebTestCase |
||
10 | { |
||
11 | use StaticKernelTestTrait; |
||
12 | |||
13 | public function getValidRoutes() |
||
27 | |||
28 | public function getInvalidRoutes() |
||
36 | |||
37 | /** |
||
38 | * @dataProvider getInvalidRoutes |
||
39 | * @expectedException \Symfony\Component\Routing\Exception\MethodNotAllowedException |
||
40 | * |
||
41 | * @param $path |
||
42 | * @param $method |
||
43 | */ |
||
44 | public function testPathNotMatches($path, $method) |
||
48 | |||
49 | /** |
||
50 | * @dataProvider getValidRoutes |
||
51 | * |
||
52 | * @param string $path |
||
53 | * @param string $method |
||
54 | */ |
||
55 | public function testPathMatches($path, $method) |
||
59 | |||
60 | /** |
||
61 | * @param $method |
||
62 | * |
||
63 | * @return object|\Symfony\Bundle\FrameworkBundle\Routing\Router |
||
64 | */ |
||
65 | private function createRouter($method) |
||
75 | } |
||
76 |