aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
Commit message (Collapse)AuthorAgeFilesLines
...
* | [feature/template-engine] Relax missing file exception check.Oleg Pudeyev2011-05-011-1/+1
| | | | | | | | | | | | | | As long as the exception message has the correct description and file name we should not care which function raised the exception. PHPBB3-9726
* | [feature/template-engine] Fix negative variable expressionsIgor Wiedler2011-04-253-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | compile_tag_if had the flawed approach of adding an isset statement for all variables to the beginning of the if. This fails for negative expressions, and checking those takes a considerable effort. The easier solution is to make the variable expression itself conditional, defaulting to null if it is not set. Thanks to naderman for the solution. PHPBB3-9726
* | [feature/template-engine] Added a test for reuse of loop identifiers.Oleg Pudeyev2011-04-252-0/+16
| | | | | | | | | | | | | | | | | | This currently does not pass, thus it is commented out. The reuse appears implausible in the same file, however it may be also done across template files where it is much harder to detect. PHPBB3-9726
* | [feature/template-engine] Corrected miscompilation of loop size constructs.Oleg Pudeyev2011-04-252-0/+46
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Corrected an off-by-one error in nested namespaces.Oleg Pudeyev2011-04-243-3/+24
| | | | | | | | | | | | | | | | This error resulted in a dot from the namespace being placed into variable reference in compiled template code, thus creating bogus compiled template code. PHPBB3-9726
* | [feature/template-engine] Added a test for multilevel references in loops.Oleg Pudeyev2011-04-242-0/+24
| | | | | | | | | | | | | | | | | | This currently fails. This test is a reduced version of permission_mask template in acp, which is not correctly compiled by the current template engine code. PHPBB3-9726
* | [feature/template-engine] Deleted silencing of notices.Oleg Pudeyev2011-04-241-3/+3
| | | | | | | | | | | | | | The code is now supposed to be notice-free, therefore there is no need to have the notices silenced. PHPBB3-9726
* | [feature/template-engine] Deleted $template from phpbb_template_compile class.Oleg Pudeyev2011-04-241-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | phpbb_template_compile is now much simpler. It takes complete file paths as inputs, either source template path or source template path and output compiled template path. The number of methods also went down to two - compile template and returned compiled text or compile and write to file. phpbb_compile class is responsible for determining source and compiled paths. It already had all the data necessary for this, now the code is in the same place as the data it uses. PHPBB3-9726
* | [feature/template-engine] Allow leading underscores in variable names.Oleg Pudeyev2011-04-242-0/+30
| | | | | | | | | | | | Subsilver uses ._file in overall_header. PHPBB3-9726
* | [feature/template-engine] Fix recompilation logic.Oleg Pudeyev2011-04-241-1/+1
| | | | | | | | | | | | | | | | | | Do not change $recompile from true to false - any recompilation condition alone is sufficient to force recompilation. Also uncomment the nonexistent file test which passes with this fix. PHPBB3-9726
* | [feature/template-engine] Adjust path in includephp template.Oleg Pudeyev2011-04-241-1/+1
| | | | | | | | | | | | Now that tests are run from top level the '..' is wrong. PHPBB3-9726
* | [feature/template-engine] Update tests.Marek A. Ruszczynski2011-04-235-55/+30
| | | | | | | | PHPBB3-9726
* | Merge branch 'develop-olympus' into developNils Adermann2011-03-073-206/+47
|\ \ | |/ | | | | | | | | * develop-olympus: [ticket/10081] remove $phpEx. [ticket/10081] Cleanup Template Tests.
| * [ticket/10081] remove $phpEx.Marek A. Ruszczynski2011-03-071-10/+3
| | | | | | | | PHPBB3-10081
| * [ticket/10081] Cleanup Template Tests.Marek A. Ruszczynski2011-03-073-199/+47
| | | | | | | | | | | | There are no incomplete template tests anymore. PHPBB3-10081
* | 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-101-0/+2
|\ \ | |/ | | | | 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 '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-47/+5
|\ \ | |/ | | | | | | | | | | | | | | | | | | 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-045-47/+5
| | | | | | | | PHPBB3-9967
| * [task/mssql-db-tests] PHPUnit output got stuck after unterminated ob_start.Nils Adermann2010-10-251-0/+1
| | | | | | | | PHPBB3-9868
* | Merge branch 'develop-olympus' into developNils Adermann2010-08-211-0/+6
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: (57 commits) Revert "[ticket/7716] Data too long for column 'message_subject'" [ticket/7716] Data too long for column 'message_subject' [ticket/9780] Adding unit tests for gen_rand_string(). [ticket/9780] Add length check back to gen_rand_string(). [ticket/7972] Copying topics in the MCP now indexes the new topic. [ticket/9782] Board disable radio set on when server load high [ticket/9635] Useless parameter $data['post_time'] in function submit_post. [ticket/9104] Safari does not display box headers correctly in the ACP. [ticket/9777] Print error message in pre-commit hook when php is not installed. [ticket/7716] Data too long for column 'message_subject' [task/git-tools] Ignore git commit message comments [task/git-tools] Adjust the hook to enforce that a ticket is always mentioned [task/git-tools] Vastly expanded commit-msg hook. [task/git-tools] Beginnings of a syntax checking hook. [task/git-tools] Append ticket identifier to commit message prior to editing. [ticket/7332] Redirect users back to post details when performing actions. [ticket/7332] Collapse post details content down to a maximum of 300px heigh [ticket/9771] Remove query string parameters that have no name. [ticket/9760] Remove unrestricted wildcards from search terms. [ticket/9599] Reimplement phpbb_checkdnsrr() function. ... Conflicts: tests/template/template.php
| * [ticket/9701] Prevent notices from being hidden by template testsNils Adermann2010-07-081-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The template tests disable NOTICEs for the duration of template execution since the current version of the template engine does not generate sufficiently clean code. The error level is reset aftwards, however that part is skipped when trigger_error is called which is converted into a regular exception by PHPUnit and passed down until caught. Such exceptions are now caught to reset the error level, and then the exception is rethrown. This uncovered another issue in the template tests which only passed because NOTICEs were unintentionally disabled at this point. assign_display is also required to operate without NOTICEs. The respective code has been added around its callee as well. However no handling of exceptions takes place there. If another test checking for errors in that function is ever added similar catch logic will have to be added there. PHPBB3-9701
* | Merge branch 'develop-olympus' into developNils Adermann2010-03-261-1/+1
|\ \ | |/ | | | | | | | | | | | | * develop-olympus: [develop-olympus] Make this test run on windows with backslash-paths. [bug/56965] Redirect fails with directory traversal [bug/58685] Correct spelling errors in append_sid() comments. [bug/58025] Search robots are now redirected if they send a SID in the request
| * [develop-olympus] Make this test run on windows with backslash-paths.Joas Schilling2010-03-261-1/+1
| |
* | [develop] Failed to merge the template test properly.Nils Adermann2010-03-101-96/+0
| | | | | | | | | | | | The feature branch for the new template engine should probably contain all the deleted tests as well. We should look into the incompatibilities and try to stay backwards compatible.
* | Merge branch 'develop-olympus' into developNils Adermann2010-03-108-107/+120
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1016-0/+915
| | | | | 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-61/+20
| | | | | | template/bbcode yet) git-svn-id: file:///svn/phpbb/trunk@10212 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix most of the template test suite :)Chris Smith2009-06-133-27/+87
| | | | git-svn-id: file:///svn/phpbb/trunk@9588 89ea8834-ac86-4346-8a33-228a782c2dd0
* Remove cache files after each test, ensure they are not included in the ↵Chris Smith2008-12-071-0/+11
| | | | | | coverage report git-svn-id: file:///svn/phpbb/trunk@9181 89ea8834-ac86-4346-8a33-228a782c2dd0
* Should not be needed, unlink() should clear sthe cache and this was never ↵Chris Smith2008-12-071-4/+0
| | | | | | the problem anyway git-svn-id: file:///svn/phpbb/trunk@9180 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fixed :DChris Smith2008-12-011-0/+4
| | | | git-svn-id: file:///svn/phpbb/trunk@9142 89ea8834-ac86-4346-8a33-228a782c2dd0
* Test empty filename and invalid handleChris Smith2008-11-251-0/+7
| | | | git-svn-id: file:///svn/phpbb/trunk@9119 89ea8834-ac86-4346-8a33-228a782c2dd0
* Test empty filenameChris Smith2008-11-251-1/+7
| | | | git-svn-id: file:///svn/phpbb/trunk@9118 89ea8834-ac86-4346-8a33-228a782c2dd0
* Test missing filesChris Smith2008-11-251-6/+16
| | | | git-svn-id: file:///svn/phpbb/trunk@9117 89ea8834-ac86-4346-8a33-228a782c2dd0
* - Add template variable S_BLOCK_NAMEChris Smith2008-11-252-0/+265
| | | | | | | | - Modify template::alter_block_array() so it supports modification of nested blocks - Add (incomplete) tests for template::alter_block_array() git-svn-id: file:///svn/phpbb/trunk@9116 89ea8834-ac86-4346-8a33-228a782c2dd0
* - Make a start on completing the phpDoc comments for the template engineChris Smith2008-11-246-5/+86
| | | | | | | | - Tidy template engine code, mainly PHP5 stuff, made some methods void instead of just returning true - Add tests for the remaining untested compilation code git-svn-id: file:///svn/phpbb/trunk@9115 89ea8834-ac86-4346-8a33-228a782c2dd0
* Test is (even|odd) by yChris Smith2008-11-242-0/+18
| | | | git-svn-id: file:///svn/phpbb/trunk@9110 89ea8834-ac86-4346-8a33-228a782c2dd0
* - updating all tests to use new frameworkNils Adermann2008-11-242-3/+3
| | | | git-svn-id: file:///svn/phpbb/trunk@9106 89ea8834-ac86-4346-8a33-228a782c2dd0
* More testsChris Smith2008-11-237-9/+147
| | | | git-svn-id: file:///svn/phpbb/trunk@9100 89ea8834-ac86-4346-8a33-228a782c2dd0
* test advanced loop constructsChris Smith2008-11-232-1/+66
| | | | git-svn-id: file:///svn/phpbb/trunk@9099 89ea8834-ac86-4346-8a33-228a782c2dd0
* S_NUM_ROWS gives you the number of rows in a blockChris Smith2008-11-232-3/+5
| | | | git-svn-id: file:///svn/phpbb/trunk@9098 89ea8834-ac86-4346-8a33-228a782c2dd0
* Will he ever be happy? ...Chris Smith2008-11-231-21/+14
| | | | git-svn-id: file:///svn/phpbb/trunk@9094 89ea8834-ac86-4346-8a33-228a782c2dd0
* Refactor and fix :)Chris Smith2008-11-232-35/+20
| | | | git-svn-id: file:///svn/phpbb/trunk@9093 89ea8834-ac86-4346-8a33-228a782c2dd0
* Run template tests over non-cached data as wellChris Smith2008-11-232-8/+55
| | | | git-svn-id: file:///svn/phpbb/trunk@9092 89ea8834-ac86-4346-8a33-228a782c2dd0
* all 557 tests pass now :DChris Smith2008-11-231-1/+5
| | | | git-svn-id: file:///svn/phpbb/trunk@9091 89ea8834-ac86-4346-8a33-228a782c2dd0