1 | <?php |
||
8 | final class RoutingTestCase extends WebTestCase |
||
9 | { |
||
10 | public function getValidRoutes() |
||
24 | |||
25 | public function getInvalidRoutes() |
||
33 | |||
34 | /** |
||
35 | * @dataProvider getInvalidRoutes |
||
36 | * @expectedException \Symfony\Component\Routing\Exception\MethodNotAllowedException |
||
37 | * |
||
38 | * @param $path |
||
39 | * @param $method |
||
40 | */ |
||
41 | public function testPathNotMatches($path, $method) |
||
45 | |||
46 | /** |
||
47 | * @dataProvider getValidRoutes |
||
48 | * |
||
49 | * @param string $path |
||
50 | * @param string $method |
||
51 | */ |
||
52 | public function testPathMatches($path, $method) |
||
56 | |||
57 | /** |
||
58 | * @param $method |
||
59 | * |
||
60 | * @return object|\Symfony\Bundle\FrameworkBundle\Routing\Router |
||
61 | */ |
||
62 | private function createRouter($method) |
||
72 | } |
||
73 |