MediaWiki
REL1_19
|
Tests for the PathRouter parsing. More...
Public Member Functions | |
callbackForTest (&$matches, $data) | |
dataRegexpChars () | |
setUp () | |
testAdditionalParameter () | |
Test the handling of $2 inside paths. | |
testBasic () | |
Test basic path parsing. | |
testCallback () | |
testCharacters () | |
Make sure the router handles characters like +&() properly. | |
testFail () | |
Test to ensure that matches are not made if a parameter expects nonexistent input. | |
testKeyParameter () | |
Test the handling of key based arrays with a url parameter. | |
testLength () | |
Ensure the router doesn't choke on long paths. | |
testLoose () | |
Test loose path auto-$1. | |
testOrder () | |
Test to ensure that path is based on specifity, not order. | |
testPatternUrlencoding () | |
Ensure that the php passed site of parameter values are not urldecoded. | |
testRawParamValue () | |
Ensure that raw parameter values do not have any variable replacements or urldecoding. | |
testRegexpChars ($char) | |
Make sure the router doesn't break on special characters like $ used in regexp replacements dataRegexpChars. | |
testRestrictedValue () | |
Test additional restricted value parameter. | |
testSpecial () | |
Make sure the router handles titles like Special:Recentchanges correctly. | |
testUnicode () | |
Make sure the router handles unicode characters correctly testSpecial testUrlencoding testCharacters. | |
testUrlencoding () | |
Make sure the router decodes urlencoding properly. | |
testWeight () | |
Test to ensure weight of paths is handled correctly. |
Tests for the PathRouter parsing.
Definition at line 6 of file PathRouterTest.php.
PathRouterTest::callbackForTest | ( | &$ | matches, |
$ | data | ||
) |
Definition at line 107 of file PathRouterTest.php.
References $matches.
Definition at line 185 of file PathRouterTest.php.
Definition at line 8 of file PathRouterTest.php.
References PathRouter\add().
Test the handling of $2 inside paths.
Definition at line 74 of file PathRouterTest.php.
References $matches, and PathRouter\add().
Definition at line 112 of file PathRouterTest.php.
References $matches, and PathRouter\add().
Make sure the router handles characters like +&() properly.
Definition at line 206 of file PathRouterTest.php.
References $matches.
Test to ensure that matches are not made if a parameter expects nonexistent input.
Definition at line 130 of file PathRouterTest.php.
References $matches, and PathRouter\add().
Test the handling of key based arrays with a url parameter.
Definition at line 64 of file PathRouterTest.php.
References $matches, and PathRouter\add().
Ensure the router doesn't choke on long paths.
Definition at line 228 of file PathRouterTest.php.
References $matches.
Test loose path auto-$1.
Definition at line 25 of file PathRouterTest.php.
References $matches, and PathRouter\add().
Test to ensure that path is based on specifity, not order.
Definition at line 45 of file PathRouterTest.php.
References $matches, and PathRouter\add().
Ensure that the php passed site of parameter values are not urldecoded.
Definition at line 237 of file PathRouterTest.php.
References $matches, and PathRouter\add().
Ensure that raw parameter values do not have any variable replacements or urldecoding.
Definition at line 247 of file PathRouterTest.php.
References $matches, and PathRouter\add().
PathRouterTest::testRegexpChars | ( | $ | char | ) |
Make sure the router doesn't break on special characters like $ used in regexp replacements dataRegexpChars.
Definition at line 198 of file PathRouterTest.php.
References $matches.
Test additional restricted value parameter.
Definition at line 85 of file PathRouterTest.php.
References $matches, and PathRouter\add().
Make sure the router handles titles like Special:Recentchanges correctly.
Definition at line 172 of file PathRouterTest.php.
References $matches.
Make sure the router handles unicode characters correctly testSpecial testUrlencoding testCharacters.
Definition at line 217 of file PathRouterTest.php.
References $matches.
Make sure the router decodes urlencoding properly.
Definition at line 180 of file PathRouterTest.php.
References $matches.
Test to ensure weight of paths is handled correctly.
Definition at line 140 of file PathRouterTest.php.
References $path, $result, and PathRouter\addStrict().