aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/10322] Separate template varref resolution from output generationPatrick Webster2011-09-167-3/+24
| | | | | | | | | Most template variables can now have their PHP variable name resolved instead of only compiling directly. This allows for the use of block vars in INCLUDE statements. This does not work for language variables since they require multiple checks. Added tests for the new types of allowed INCLUDEs. PHPBB3-10322
* [ticket/10322] Dynamic template include testPatrick Webster2011-09-082-0/+10
| | | | PHPBB3-10322
* Merge remote-tracking branch 'cyberalien/ticket/10350' into developOleg Pudeyev2011-09-051-0/+31
|\ | | | | | | | | | | * cyberalien/ticket/10350: [ticket/10350] Script for testing eval renderer [ticket/10350] Fix for class phpbb_template_renderer_eval
| * [ticket/10350] Script for testing eval rendererVjacheslav Trushkin2011-09-051-0/+31
| | | | | | | | | | | | Script for testing eval renderer (fixed) PHPBB3-10350
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-09-051-2/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10354] Include cache directory path in unwritable message. Conflicts: tests/template/template_test.php
| * | [ticket/10354] Include cache directory path in unwritable message.Oleg Pudeyev2011-09-051-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | When template tests are skipped because cache directory is not writable, include path to the cache directory into the message saying it is not writable. PHPBB3-10354
* | | [ticket/10355] Correctly end output buffering in template tests.Oleg Pudeyev2011-09-051-2/+16
| |/ |/| | | | | | | | | This code was copied verbatim from develop-olympus. PHPBB3-10355
* | [feature/template-engine] Dependency inject locator into template.Oleg Pudeyev2011-08-092-2/+5
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Factor template locator out of template class.Oleg Pudeyev2011-07-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | Template locator is responsible for maintaining mapping from template handles to filenames and paths, and provides resolution services using these mappings. Template locator is aware of template inheritance and is capable of checking template file existence on the filesystem. PHPBB3-9726
* | [feature/template-engine] Rename is_absolute to phpbb_is_absolute.Oleg Pudeyev2011-07-241-1/+1
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Test template DEFINE statements across filesNils Adermann2011-07-173-1/+7
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Remove $include_once argument of display()Igor Wiedler2011-07-101-1/+1
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Refactor $config dependency out of the filterIgor Wiedler2011-07-105-19/+15
| | | | | | | | | | | | | | | | | | | | The template stream filter no longer depends on the $config global. Instead it uses a 'allow_php' param that is passed via stream_bucket_append's last argument. Tests also adjusted. PHPBB3-9726
* | [feature/template-engine] Move template.php to includes/templateIgor Wiedler2011-07-102-2/+0
| | | | | | | | | | | | This allows making use of autoloading. PHPBB3-9726
* | [feature/template-engine] Fixed copyright year.Oleg Pudeyev2011-05-191-1/+1
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Fixed absolute path PHP includes, added test.Oleg Pudeyev2011-05-191-0/+24
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Moved includephp test to its own file.Oleg Pudeyev2011-05-183-17/+28
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Added tests for template inheritance.Oleg Pudeyev2011-05-185-0/+78
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Delete useless template require.Oleg Pudeyev2011-05-181-1/+0
| | | | | | | | | | | | It is now handled by autoloading. PHPBB3-9726
* | [feature/template-engine] Added a test for inclusion of php files from subdir.Oleg Pudeyev2011-05-143-100/+148
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Make INCLUDEPHP relative to board root.Oleg Pudeyev2011-05-123-6/+7
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Replaced globals with dependency injection.Oleg Pudeyev2011-05-121-1/+3
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Deleted useless catch.Oleg Pudeyev2011-05-121-4/+0
| | | | | | | | | | | | In tests there is no need to catch unexpected exceptions. PHPBB3-9726
* | [feature/template-engine] Delete obsolete comments pertaining to notices.Oleg Pudeyev2011-05-121-7/+0
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Add back IN_PHPBB preamble.Oleg Pudeyev2011-05-122-0/+33
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Delete template class, use phpbb_template instead.Oleg Pudeyev2011-05-041-1/+1
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Only copy files to cache if they exist.Oleg Pudeyev2011-05-011-2/+3
| | | | | | | | | | | | | | | | When testing eval code path, compiled templates may not be written to the file system, and unconditionally trying to copy them breaks tests. PHPBB3-9726
* | [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