diff options
author | Arnold Daniels <arnold@jasny.net> | 2016-11-29 23:56:03 +0100 |
---|---|---|
committer | Arnold Daniels <arnold@jasny.net> | 2016-11-29 23:56:03 +0100 |
commit | 312fab48f1de4562851a4176285d6a1aca251df2 (patch) | |
tree | 54a72aa1dceef7f8153fcee59fdddcbf317569b1 /tests/Router/Runner/ControllerTest.php | |
parent | b895c4a0cc966bd397168c5f5dd61a1fb000423e (diff) | |
download | router-origin/strict-controller-class.zip router-origin/strict-controller-class.tar.gz router-origin/strict-controller-class.tar.bz2 |
Enforce that the namespace of a controller is done through an arrayorigin/strict-controller-class
Allowing to use a backslash could also lead to security issues
Diffstat (limited to 'tests/Router/Runner/ControllerTest.php')
-rw-r--r-- | tests/Router/Runner/ControllerTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Router/Runner/ControllerTest.php b/tests/Router/Runner/ControllerTest.php index 365ed65..5045c4d 100644 --- a/tests/Router/Runner/ControllerTest.php +++ b/tests/Router/Runner/ControllerTest.php @@ -78,6 +78,11 @@ class ControllerTest extends \PHPUnit_Framework_TestCase 'foo--bar-zoo', "Can't route to controller 'Foo--barZooController': invalid classname" ], + [ + null, + 'Foo\Bar\zoo', + "Can't route to controller 'Foo\\\\bar\\\\zooController': invalid classname" + ] ]; } |