mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 07:42:14 +00:00
[FEATURE] Added support for class hinting on routes as requested by #491
This commit is contained in:
@@ -78,8 +78,8 @@ class RouterUrlTest extends \PHPUnit\Framework\TestCase
|
||||
public function testSimilarUrls()
|
||||
{
|
||||
// Match normal route on alias
|
||||
TestRouter::resource('/url11', 'DummyController@method1');
|
||||
TestRouter::resource('/url1', 'DummyController@method1', ['as' => 'match']);
|
||||
TestRouter::get('/url11', 'DummyController@method1');
|
||||
TestRouter::resource('/url1', 'ResourceController', ['as' => 'match']);
|
||||
|
||||
TestRouter::debugNoReset('/url1', 'get');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user