1 | <?php |
||
34 | class RouterTest extends \PHPUnit_Framework_TestCase |
||
35 | { |
||
36 | |||
37 | private $router; |
||
38 | private $a = "a"; |
||
39 | |||
40 | /** |
||
41 | * @covers Tight\Router::__construct |
||
42 | */ |
||
43 | public function setUp() { |
||
77 | |||
78 | public function tearDown() { |
||
81 | |||
82 | /** |
||
83 | * @test |
||
84 | * @covers \Tight\Router::dispatch |
||
85 | * @covers \Tight\Router::getRoutes |
||
86 | */ |
||
87 | public function testRouterDispatch() { |
||
93 | |||
94 | /** |
||
95 | * @test |
||
96 | * @covers Tight\Router::notFound |
||
97 | * @covers \Tight\Router::dispatchNotFound |
||
98 | * @depends testRouterDispatch |
||
99 | */ |
||
100 | public function testRouterNotFound() { |
||
105 | |||
106 | /** |
||
107 | * @test |
||
108 | * @covers Tight\Router::get |
||
109 | * @covers Tight\Router::__construct |
||
110 | * @depends testRouterNotFound |
||
111 | */ |
||
112 | public function testRouterGet($notFound) { |
||
117 | |||
118 | /** |
||
119 | * @test |
||
120 | * @covers Tight\Router::post |
||
121 | * @depends testRouterNotFound |
||
122 | */ |
||
123 | public function testRouterPost($notFound) { |
||
128 | |||
129 | /** |
||
130 | * @test |
||
131 | * @covers Tight\Router::map |
||
132 | * @covers Tight\Router::url |
||
133 | * @depends testRouterNotFound |
||
134 | */ |
||
135 | public function testRouterMap($notFound) { |
||
140 | |||
141 | /** |
||
142 | * @test |
||
143 | * @covers Tight\Router::update |
||
144 | * @depends testRouterNotFound |
||
145 | */ |
||
146 | public function testRouteUpdate($notFound) { |
||
150 | |||
151 | /** |
||
152 | * @test |
||
153 | * @covers Tight\Router::delete |
||
154 | * @depends testRouterNotFound |
||
155 | */ |
||
156 | public function testRouteDelete($notFound) { |
||
160 | |||
161 | /** |
||
162 | * @test |
||
163 | * @covers Tight\Route::setMiddleware |
||
164 | * @depends testRouterNotFound |
||
165 | */ |
||
166 | public function testRouteMiddleware($notFound) { |
||
170 | |||
171 | /** |
||
172 | * @test |
||
173 | */ |
||
174 | public function testRouterGetRequestUrn() { |
||
177 | |||
178 | /** |
||
179 | * @test |
||
180 | * @covers \Tight\Router::runMvc |
||
181 | * @covers \Tight\Router::registerClasses |
||
182 | */ |
||
183 | public function testRouterMvc() { |
||
187 | |||
188 | } |
||
189 |
This check marks private properties in classes that are never used. Those properties can be removed.