aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
Commit message (Collapse)AuthorAgeFilesLines
...
* | [feature/merging-style-components] Initializing locator and provider separatelyVjacheslav Trushkin2012-03-312-2/+8
| | | | | | | | | | | | Moving locator and path provider initialization out of style class PHPBB3-10632
* | [feature/merging-style-components] Updating test casesVjacheslav Trushkin2012-03-154-5/+5
| | | | | | | | | | | | Updating code in test cases for new template classes. PHPBB3-10632
* | [feature/merging-style-components] Creating style classVjacheslav Trushkin2012-03-152-8/+5
| | | | | | | | | | | | Creating phpbb_style class, changing template initialization to style initialization PHPBB3-10632
* | [feature/merging-style-components] Renaming template classesVjacheslav Trushkin2012-03-144-9/+9
| | | | | | | | | | | | Changing template classes prefixes from phpbb_template to phpbb_style (for classes that will work with styles) or phpbb_style_template (for classes that are specific to templates) PHPBB3-10632
* | Merge remote-tracking branch 'cyberalien/feature/append_var' into developOleg Pudeyev2012-03-071-0/+36
|\ \ | | | | | | | | | | | | | | | * cyberalien/feature/append_var: [feature/append_var] Adding test case [feature/append_var] Adding append_var template class function
| * | [feature/append_var] Adding test caseVjacheslav Trushkin2012-03-081-0/+36
| | | | | | | | | | | | | | | | | | Adding test case for append_var PHPBB3-10666
* | | [ticket/10685] Refactor template test defaults for php 5.4 compatibility.Oleg Pudeyev2012-03-062-5/+13
|/ / | | | | | | PHPBB3-10685
* | [ticket/10655] Error in template inheritance testVjacheslav Trushkin2012-02-181-1/+1
| | | | | | | | | | | | Fixing error in template inheritance test PHPBB3-10655
* | [ticket/9916] Updating license in non-distributed filesUnknown2012-01-026-6/+6
| | | | | | | | 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/extension-manager] Refactoring the structure of extension providerNils Adermann2011-09-292-2/+2
| | | | | | | | PHPBB3-10323
* | [feature/extension-manager] Add support for templates in extensions.Nils Adermann2011-09-293-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a template path provider to separate the process of locating (cached) paths in extensions from the template engine. The locator is supplied with a list of paths from the path provider. Admin templates can now be created in ext/<ext>/adm/style/ and regular templates go into ext/<ext>/styles/<style>/template/. Extension templates override regular templates. So if an extension supplies a file with a name used in phpBB, the extension's file will be used. A side-effect of this commit: Locator and Provider are now able to deal with arbitrary levels of template inheritance. So we can expose this through phpbb_template if we choose to, and allow styles to inherit from inherited styles. PHPBB3-10323
* | Merge branch 'develop' of git://github.com/phpbb/phpbb3 into developAndreas Fischer2011-09-272-2/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | * 'develop' of git://github.com/phpbb/phpbb3: [ticket/10392] Alter parent namespace stripping. [ticket/10392] Test for magic loop variables with nested namespaces. [ticket/10392] Missed fix for S_BLOCK_NAME. [ticket/10392] Fix access to nested special block variables.
| * | [ticket/10392] Test for magic loop variables with nested namespaces.Chris Smith2011-09-272-2/+3
| | | | | | | | | | | | PHPBB3-10392
* | | [ticket/10384] Update unit tests to test for failing variable.Chris Smith2011-09-242-5/+7
|/ / | | | | | | PHPBB3-10384
* | [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