aboutsummaryrefslogtreecommitdiffstats
path: root/tests/request
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/15742] Remove addslashes_recursively()Jakub Senko2018-09-131-10/+0
| | | | PHPBB3-15742
* [ticket/14576] Move common required files to bootstrapMatt Friedman2016-03-312-5/+0
| | | | PHPBB3-14576
* Merge branch '3.1.x' into 3.2.xTristan Darricau2016-03-271-3/+103
|\ | | | | | | | | | | | | * 3.1.x: [ticket/14481] Add tests for x_forwarded_proto header [ticket/14481] Use port 443 if https is specified in x-forwarded-proto [ticket/14481] Respect HTTP_X_FORWARDED headers for implying https
| * [ticket/14481] Add tests for x_forwarded_proto headerMarc Alexander2016-03-101-3/+103
| | | | | | | | PHPBB3-14481
* | [ticket/13455] Update calls to `request_var()`Gaëtan Muller2015-02-031-1/+1
|/ | | | PHPBB3-13455
* [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-274-15/+28
| | | | PHPBB3-12594
* [ticket/11700] Move all recent code to namespacesNils Adermann2013-09-164-7/+7
| | | | PHPBB3-11700
* [ticket/11700] Modify all code to use the new interface namesNils Adermann2013-07-141-1/+1
| | | | PHPBB3-11700
* Merge remote-tracking branch 'Fyorl/ticket/10939' into developAndreas Fischer2012-11-101-0/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fyorl/ticket/10939: [ticket/10939] Added documentation for phpbb_request::file [ticket/10939] Added tests for phpbb_request::file [ticket/10939] Modified the default return for $request->file [ticket/10939] Modified fileupload tests to deal with new behaviour [ticket/10939] Modified mock request class to handle deactivated $_FILES [ticket/10939] Modified acp_groups.php to not use $_FILES [ticket/10939] Modified ucp_groups.php to not use $_FILES [ticket/10939] Modified functions_user.php to not use $_FILES [ticket/10939] Modified message_parser.php to not use $_FILES [ticket/10939] Modified functions_upload to not use $_FILES [ticket/10939] Modified request test slightly to include $_FILES [ticket/10939] Added $_FILES handling to phpbb_request
| * [ticket/10939] Added tests for phpbb_request::fileFyorl2012-08-201-0/+17
| | | | | | | | PHPBB3-10939
| * [ticket/10939] Modified request test slightly to include $_FILESFyorl2012-08-151-0/+8
| | | | | | | | PHPBB3-10939
* | [ticket/8713] Add simple (non-nested) test case for untrimmed set_var().Andreas Fischer2012-09-081-0/+10
| | | | | | | | PHPBB3-8713
* | [ticket/8713] Use \t in double quotes instead of tabs.Andreas Fischer2012-09-081-2/+2
| | | | | | | | PHPBB3-8713
* | [ticket/8713] Use correct parameter for nested data.Andreas Fischer2012-09-081-1/+1
| | | | | | | | PHPBB3-8713
* | [ticket/8713] Adjust test method name to other recursive_set_var() tests.Andreas Fischer2012-09-081-1/+1
| | | | | | | | PHPBB3-8713
* | [ticket/8713] Do not trim login inputsNathaniel Guse2012-09-031-0/+10
|/ | | | | | | | | Create a function to request variables which are not trimmed. All requests for passwords (except forum passwords) now use the untrimmed request function. PHPBB3-8713
* [ticket/10733] Removing static from data providersVjacheslav Trushkin2012-04-011-2/+2
| | | | | | Removing static from data provider functions PHPBB3-10733
* [ticket/9916] Updating license in non-distributed filesUnknown2012-01-023-3/+3
| | | | PHPBB3-9916
* Merge branch 'develop-olympus' into developAndreas Fischer2012-01-021-1/+1
|\ | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9916] Changing header in non-distributed files [ticket/9916] Changing coding guidelines license [ticket/9916] Updating License in the header Conflicts: tests/mock/cache.php
| * [ticket/9916] Updating License in the headerUnknown2012-01-021-1/+1
| | | | | | | | PHPBB3-9916
* | [feature/request-class] Remove $html_encode arg, force manual decodingIgor Wiedler2011-08-182-13/+1
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Add is_secure method to request for HTTPSIgor Wiedler2011-08-181-0/+11
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Make server() use the $html_encode parameterIgor Wiedler2011-08-061-0/+44
| | | | | | | | | | | | | | | | | | $request->server() should not auto html-escape values. header() however should. Also introduce some tests for this behaviour. Thanks to nn- for catching this. PHPBB3-9716
* | [feature/request-class] Add server(), header() and is_ajax() to requestIgor Wiedler2011-07-152-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | Extend the request class with helpers for reading server vars (server()) and HTTP request headers (header()). Refactor the existing code base to make use of these helpers, make $_SERVER a deactivated super global. Also introduce an is_ajax() method, which checks the X-Requested-With header for the value 'XMLHttpRequest', which is sent by JavaScript libraries, such as jQuery. PHPBB3-9716
* | [ticket/10080] Allow resetting the request instance used by request_var.Nils Adermann2011-03-071-0/+9
| | | | | | | | PHPBB3-10080
* | [ticket/10011] Tests can't be ran on PHP < 5.3Erik Frèrejean2011-01-311-1/+1
| | | | | | | | | | | | Apply the `__DIR__` fix to some remaining Ascraeus tests PHPBB3-10011
* | Merge branch 'develop-olympus' into developAndreas Fischer2011-01-311-2/+2
|\ \ | |/ | | | | | | | | | | | | * develop-olympus: [ticket/10011] Tests don't work on PHP < 5.3 Conflicts: tests/security/redirect_test.php
| * [ticket/10011] Tests don't work on PHP < 5.3Erik Frèrejean2011-01-311-2/+2
| | | | | | | | | | | | | | | | Due to the usage of `__DIR__` for the file includes the tests can't be ran on systems with PHP < 5.3. Replace all occurances of `__DIR__` with `dirname(__FILE__)`. PHPBB3-10011
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-104-0/+0
|\ \ | |/ | | | | This merge commit includes ascraeus-specific renames and adjustments.
| * [ticket/9987] Rename test files to include a _test suffixIgor Wiedler2011-01-101-0/+0
| | | | | | | | PHPBB3-9987
* | Merge branch 'ticket/igorw/9979' into developIgor Wiedler2011-01-094-15/+0
|\ \ | | | | | | | | | | | | * ticket/igorw/9979: [ticket/9979] Support autoloading in unit tests
| * | [ticket/9979] Support autoloading in unit testsIgor Wiedler2011-01-074-15/+0
| | | | | | | | | | | | PHPBB-9979
* | | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-091-0/+1
|\ \ \ | |/ / |/| / | |/ | | * develop-olympus: [ticket/9981] Fix unit test dependencies
| * [ticket/9981] Fix unit test dependenciesIgor Wiedler2011-01-071-0/+1
| | | | | | | | PHPBB3-9981
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-075-66/+15
|\ \ | |/ | | | | | | | | | | | | | | | | | | This commit also ports all ascraeus tests to the new format. Conflicts: tests/all_tests.php tests/network/all_tests.php tests/request/all_tests.php tests/request/request_var.php tests/template/templates/includephp.html
| * [task/phpunit-xml] Use phpunit.xml for test suiteIgor Wiedler2011-01-042-43/+1
| | | | | | | | PHPBB3-9967
* | [feature/request-class] Adjust misleading commentIgor Wiedler2010-10-171-1/+1
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Make additional request test cases runIgor Wiedler2010-09-301-3/+4
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Prevent recursive_set_var from applying ↵Igor Wiedler2010-09-191-0/+21
| | | | | | | | | | | | htmlspecialchars twice PHPBB3-9716
* | [feature/request-class] Refactor request classes to use autoloadingIgor Wiedler2010-09-174-5/+6
| | | | | | | | | | | | | | | | | | All class names have been adjusted to use a phpbb_request prefix, allowing them to be autoloaded. Also introduces some improvements to autoloading in general. PHPBB3-9716
* | [feature/request-class] Request class test now uses a type cast helper mock.Nils Adermann2010-09-171-2/+4
| | | | | | | | | | | | | | | | Removed the dependency of the request class test on having an actual phpbb_type_cast_helper instance, by replacing it with an object mocking the phpbb_type_cast_helper_interface. PHPBB3-9716
* | [feature/request-class] Refactored request class and wrapper functions.Nils Adermann2010-09-174-16/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The request class - now makes use of the new type cast helper (dependency injection) - has no static methods anymore. - now has a constructor argument to leave super globals turned on Brought back the set_var function in functions.php. It is now a wrapper around the type cast helper. It creates an instance on the fly. The request_var wrapper function now has an optional last argument to inject the request class instance, rather than abusing the $var_name. PHPBB3-9716
* | [feature/request-class] Extracted type casting helpers from the request class.Nils Adermann2010-09-171-0/+33
| | | | | | | | | | | | | | | | These methods should be available without having to instantiate a request class object, better separation of concerns. A set_var wrapper around this class no longer requires a request object at all. PHPBB3-9716
* | [feature/request-class] New request class supports recursive arrays.Nils Adermann2010-09-171-2/+1
| | | | | | | | | | | | | | So we can enable this old 3 level deep array input entry in the request_var data provider, it is now also supported! PHPBB3-9716
* | [feature/request-class] Adding a request class based on ascraeus-experiment.Nils Adermann2010-09-175-74/+121
| | | | | | | | | | | | | | | | | | | | | | | | The well known request_var function is now a wrapper that calls a method on a phpbb_request object. The class provides additional functionality. It can replace all super globals with special objects that throw errors when being accessed. They still allow isset operations to keep backward compatibility with isset($_POST['var']) checks. The phpbb_request class implements the phpbb_request_interface which is available for easy mocking of input in tests. PHPBB3-9716
* | Merge branch 'develop-olympus' into developNils Adermann2010-03-102-2/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: tests/all_tests.php tests/request/all_tests.php tests/request/request_var.php tests/security/all_tests.php tests/security/extract_current_page.php tests/security/redirect.php tests/template/all_tests.php tests/template/template.php tests/template/templates/define.html tests/template/templates/expressions.html tests/template/templates/if.html tests/template/templates/includephp.html tests/template/templates/loop.html tests/template/templates/loop_advanced.html tests/template/templates/loop_vars.html tests/test_framework/framework.php tests/test_framework/phpbb_test_case.php tests/text_processing/all_tests.php tests/text_processing/make_clickable.php tests/utf/all_tests.php tests/utf/utf8_clean_string_test.php tests/utf/utf8_wordwrap_test.php
| * [develop-olympus] Backported 3.1 unit tests to 3.0.Nils Adermann2010-03-102-0/+221
| | | | | Start adding unit tests for bugs you fix! Tests for anything are welcome really. We have to work on these a lot.
* adjust tests a little bit to let them work again in trunk (not adjusted ↵Meik Sievertsen2009-10-052-18/+35
| | | | | | template/bbcode yet) git-svn-id: file:///svn/phpbb/trunk@10212 89ea8834-ac86-4346-8a33-228a782c2dd0
* - adding tests for the new request class and extending the tests for ↵Nils Adermann2008-11-243-45/+203
| | | | | | request_var to include deep direct access to multidimensional arrays and arbitrary number of dimensions git-svn-id: file:///svn/phpbb/trunk@9105 89ea8834-ac86-4346-8a33-228a782c2dd0
* - adding request_var testsNils Adermann2008-05-042-0/+204
git-svn-id: file:///svn/phpbb/trunk@8549 89ea8834-ac86-4346-8a33-228a782c2dd0