@@ -155,6 +155,9 @@ discard block |
||
| 155 | 155 | */ |
| 156 | 156 | protected $variables = []; |
| 157 | 157 | |
| 158 | + /** |
|
| 159 | + * @param string $path |
|
| 160 | + */ |
|
| 158 | 161 | public function __construct($path, $action) { |
| 159 | 162 | $this->setPath($path); |
| 160 | 163 | $this->setAction($action); |
@@ -469,7 +472,7 @@ discard block |
||
| 469 | 472 | /** |
| 470 | 473 | * Checks whether the parameter exists |
| 471 | 474 | * @param string $name |
| 472 | - * @return mixed |
|
| 475 | + * @return boolean |
|
| 473 | 476 | */ |
| 474 | 477 | public function hasParameter($name) |
| 475 | 478 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Slince\Routing\RouteCollection; |
| 9 | 9 | use Slince\Routing\Route; |
| 10 | 10 | use Zend\Diactoros\ServerRequest; |
| 11 | -use Zend\Diactoros\ServerRequestFactory; |
|
| 12 | 11 | |
| 13 | 12 | class MatcherTest extends TestCase |
| 14 | 13 | { |