JApplicationWebRouterRestTest::testFetchControllerSuffix
Tests the fetchControllerSuffix method.
Signature
public function testFetchControllerSuffix(string
$input,
[string
$expected = false,
[mixed
$method = false,
[boolean
$exception = false,
[boolean
$allowMethod = false]]]] )
Parameters
-
$input
- Input string to test.
-
$expected
- Expected fetched string.
-
$method
- Method to override POST request
-
$exception
- True if an RuntimeException is expected based on invalid input
-
$allowMethod
- Allow or not to pass method in post request as parameter
Returns
- void