added route loader tests.
This commit is contained in:
15
tests/Fixtures/RouteLoader/routes.php
Normal file
15
tests/Fixtures/RouteLoader/routes.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'GET /' => function()
|
||||
{
|
||||
return 'GET /';
|
||||
},
|
||||
|
||||
'GET /root' => function()
|
||||
{
|
||||
return 'GET /root';
|
||||
},
|
||||
|
||||
);
|
||||
15
tests/Fixtures/RouteLoader/routes/admin/panel.php
Normal file
15
tests/Fixtures/RouteLoader/routes/admin/panel.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'GET /admin/panel/show' => function()
|
||||
{
|
||||
return 'GET /admin/panel/show';
|
||||
},
|
||||
|
||||
'GET /admin/panel/update' => function()
|
||||
{
|
||||
return 'GET /admin/panel/update';
|
||||
},
|
||||
|
||||
);
|
||||
15
tests/Fixtures/RouteLoader/routes/user.php
Normal file
15
tests/Fixtures/RouteLoader/routes/user.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
|
||||
'GET /user' => function()
|
||||
{
|
||||
return 'GET /user';
|
||||
},
|
||||
|
||||
'GET /user/profile' => function()
|
||||
{
|
||||
return 'GET /user/profile';
|
||||
},
|
||||
|
||||
);
|
||||
Reference in New Issue
Block a user