summaryrefslogtreecommitdiffstats
path: root/tests/support/TestController.php
diff options
context:
space:
mode:
authorminstel <minstel@yandex.ru>2016-10-21 00:07:38 +0300
committerminstel <minstel@yandex.ru>2016-10-21 00:07:38 +0300
commitf07a3e06e2338ac481998ed47d98073c806cc268 (patch)
tree74ac4bf2434c311da2f59bf7287acaaf47dfb381 /tests/support/TestController.php
parent18da10400c02d945632c8c7dd49d78d19d9fd9a0 (diff)
downloadcontroller-f07a3e06e2338ac481998ed47d98073c806cc268.zip
controller-f07a3e06e2338ac481998ed47d98073c806cc268.tar.gz
controller-f07a3e06e2338ac481998ed47d98073c806cc268.tar.bz2
Fixes
Diffstat (limited to 'tests/support/TestController.php')
-rw-r--r--tests/support/TestController.php18
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;
+ }
}