1 | <?php |
||
9 | class RouterTest extends TestCase |
||
10 | { |
||
11 | public function testInit() |
||
23 | |||
24 | /** |
||
25 | * @depends testInit |
||
26 | */ |
||
27 | public function testVerb($router) |
||
32 | |||
33 | |||
34 | /** |
||
35 | * @depends testInit |
||
36 | */ |
||
37 | public function testPath($router) |
||
42 | |||
43 | |||
44 | /** |
||
45 | * @depends testInit |
||
46 | */ |
||
47 | public function testAppendRoute($router) |
||
48 | { |
||
49 | $this->assertCount(0, $router->getRoutes()); |
||
50 | $router->appendRoute(new Route('/', 'Controller')); |
||
51 | $this->assertCount(1, $router->getRoutes()); |
||
52 | } |
||
53 | |||
54 | |||
55 | /** |
||
56 | * @depends testInit |
||
57 | */ |
||
58 | public function testClearRoutes($router) |
||
63 | } |
||
64 |