diff options
author | minstel <minstel@yandex.ru> | 2016-10-21 00:07:38 +0300 |
---|---|---|
committer | minstel <minstel@yandex.ru> | 2016-10-21 00:07:38 +0300 |
commit | f07a3e06e2338ac481998ed47d98073c806cc268 (patch) | |
tree | 74ac4bf2434c311da2f59bf7287acaaf47dfb381 /tests/support/TestController.php | |
parent | 18da10400c02d945632c8c7dd49d78d19d9fd9a0 (diff) | |
download | controller-f07a3e06e2338ac481998ed47d98073c806cc268.zip controller-f07a3e06e2338ac481998ed47d98073c806cc268.tar.gz controller-f07a3e06e2338ac481998ed47d98073c806cc268.tar.bz2 |
Fixes
Diffstat (limited to 'tests/support/TestController.php')
-rw-r--r-- | tests/support/TestController.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/support/TestController.php b/tests/support/TestController.php index a2f5b51..e0bdb7b 100644 --- a/tests/support/TestController.php +++ b/tests/support/TestController.php @@ -29,4 +29,22 @@ class TestController extends Controller return $response; } + + /** + * Test action for executing router + * + * @param mixed $param1 + * @param mixed $param2 + * @return ResponseInterface + */ + public function defaultAction($param1, $param2 = 'defaultValue') + { + $response = $this->getResponse(); + + $response->defaultActionCalled = true; + $response->param1 = $param1; + $response->param2 = $param2; + + return $response; + } } |