mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-15 18:23:26 +03:00
Removed .idea folder and removed "index" output from the unit-tests.
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
class DummyController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function method1()
|
||||
{
|
||||
|
||||
|
||||
@@ -79,9 +79,10 @@ class RouterUrlTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
// Match normal route on alias
|
||||
TestRouter::get('/url11', 'DummyController@method1');
|
||||
TestRouter::resource('/url1', 'ResourceController', ['as' => 'match']);
|
||||
TestRouter::get('/url22', 'DummyController@method2');
|
||||
TestRouter::get('/url33', 'DummyController@method2')->name('match');
|
||||
|
||||
TestRouter::debugNoReset('/url1', 'get');
|
||||
TestRouter::debugNoReset('/url33', 'get');
|
||||
|
||||
$this->assertEquals(TestRouter::getUrl('match'), TestRouter::getUrl());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user