1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13502] Test getArguments() method of controller resolver

PHPBB3-13502
This commit is contained in:
Marc Alexander
2016-03-30 17:44:38 +02:00
parent 3f4cf72872
commit 91045879df
2 changed files with 57 additions and 12 deletions

View File

@@ -11,8 +11,18 @@ class controller
*
* @return null
*/
public function handle()
public function handle($optional = 'foo')
{
return new Response('Test', 200);
}
public function handle2($foo = 'foo', $very_optional = 0)
{
return new Response('Test2', 200);
}
public function handle_fail($no_default)
{
return new Response('Test_fail', 200);
}
}