|
|
|
@ -42,6 +42,13 @@ class Test_Request extends PHPUnit_Framework_TestCase { |
|
|
|
|
array('/core/ajax/translations.php', 'index.php/core/ajax/translations.php', 'index.php'), |
|
|
|
|
array('/core/ajax/translations.php', '/index.php/core/ajax/translations.php', '/index.php'), |
|
|
|
|
array('/core/ajax/translations.php', '//index.php/core/ajax/translations.php', '/index.php'), |
|
|
|
|
array('', '/oc/core', '/oc/core/index.php'), |
|
|
|
|
array('', '/oc/core/', '/oc/core/index.php'), |
|
|
|
|
array('', '/oc/core/index.php', '/oc/core/index.php'), |
|
|
|
|
array('/core/ajax/translations.php', '/core/ajax/translations.php', 'index.php'), |
|
|
|
|
array('/core/ajax/translations.php', '//core/ajax/translations.php', '/index.php'), |
|
|
|
|
array('/core/ajax/translations.php', '/oc/core/ajax/translations.php', '/oc/index.php'), |
|
|
|
|
array('/1', '/oc/core/1', '/oc/core/index.php'), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -60,9 +67,7 @@ class Test_Request extends PHPUnit_Framework_TestCase { |
|
|
|
|
|
|
|
|
|
function rawPathInfoThrowsExceptionProvider() { |
|
|
|
|
return array( |
|
|
|
|
array('core/ajax/translations.php', '/index.php'), |
|
|
|
|
array('/core/ajax/translations.php', '/index.php'), |
|
|
|
|
array('//core/ajax/translations.php', '/index.php'), |
|
|
|
|
array('/oc/core1', '/oc/core/index.php'), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|