summaryrefslogtreecommitdiffstats
path: root/tests/support/TestController.php
diff options
context:
space:
mode:
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;
+ }
}