aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_test.php
Commit message (Collapse)AuthorAgeFilesLines
...
| * [ticket/11718] Quick test for fixes in ELSEIFNathaniel Guse2013-07-191-1/+1
| | | | | | | | PHPBB3-11718
* | [ticket/11707] Twig DEFINE not working as expectedNathaniel Guse2013-07-191-1/+1
|/ | | | PHPBB3-11707
* [ticket/11664] Stop creating php.html file in root path in testsNathaniel Guse2013-07-121-1/+1
| | | | | | Also includephp_absolute.html PHPBB3-11664
* [feature/twig] Add simple test to make sure Twig filters/tags are workingNathan Guse2013-07-081-0/+7
| | | | PHPBB3-11598
* [feature/twig] Add template tests for S_NUM_ROWS and S_BLOCK_NAMENathan Guse2013-07-051-1/+32
| | | | PHPBB3-11598
* [feature/twig] Add template test for ===, !==Nathan Guse2013-07-051-4/+18
| | | | PHPBB3-11598
* [feature/twig] Add test to make sure nested loops get the correct S_ROW_COUNTNathaniel Guse2013-07-041-0/+7
| | | | PHPBB3-11598
* [feature/twig] template->cachepath is now private, missed checking testsNathaniel Guse2013-07-021-1/+3
| | | | PHPBB3-11598
* [feature/twig] Move test_php back to template_testNathaniel Guse2013-07-021-0/+16
| | | | | | | | Was originally moved because I thought that a new test file might mean a new instance and the memory would be cleared, fixing the original problem, but that isn't true and it was fixed another way. PHPBB3-11598
* [feature/twig] Fix template_test.phpNathaniel Guse2013-07-011-68/+19
| | | | | | | Various tests were broken completely, and some things such as whitespace changed with Twig PHPBB3-11598
* [feature/twig] Remove duplicate test callsNathaniel Guse2013-06-241-15/+2
| | | | PHPBB3-11598
* [ticket/11482] Unit tests for advanced DEFINEVjacheslav Trushkin2013-04-101-0/+14
| | | | | | Unit tests for advanced DEFINE and ENDDEFINE PHPBB3-11482
* [ticket/11323] Enable tests for inclusion of defined variablesMarc Alexander2013-02-191-3/+0
| | | | PHPBB3-11323
* Merge PR #1194 branch 'develop-olympus' into developOleg Pudeyev2013-01-131-1/+19
|\ | | | | | | | | * develop-olympus: [ticket/11323] Add tests for inclusion of defined variables
| * [ticket/11323] Add tests for inclusion of defined variablesMarc Alexander2013-01-141-1/+16
| | | | | | | | | | | | | | | | | | This adds 2 tests for the template engine. The test using include_define_variable.html will test if a defined variable, which was defined with another template variable, can be used to include a file. The second test will do the same inside a loop using a loop variable. PHPBB3-11323
| * [ticket/11159] static public is the currently approved order.Oleg Pudeyev2012-11-061-2/+2
| | | | | | | | PHPBB3-11159
* | [ticket/10970] Paths of the form {FOO}/a/{BAR}/b parsed correctlyFyorl2012-07-081-0/+7
| | | | | | | | | | | | | | | | | | | | A new method to handle this type of path was added and compile_tag_include, compile_tag_include_php and compile_tag_include_js were modified to use it appropriately. Tests were added for these three macros also. PHPBB3-10970
* | [ticket/10800] Changing template paths in testsVjacheslav Trushkin2012-04-291-1/+1
| | | | | | | | | | | | Changing template paths in tests from absolute to relative PHPBB3-10800
* | [ticket/10733] Removing static from data providersVjacheslav Trushkin2012-04-011-2/+2
| | | | | | | | | | | | Removing static from data provider functions PHPBB3-10733
* | [feature/merging-style-components] Updating test casesVjacheslav Trushkin2012-03-151-2/+2
| | | | | | | | | | | | Updating code in test cases for new template classes. PHPBB3-10632
* | [feature/append_var] Adding test caseVjacheslav Trushkin2012-03-081-0/+36
| | | | | | | | | | | | Adding test case for append_var PHPBB3-10666
* | 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
| * [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
* | [feature/extension-manager] Add support for templates in extensions.Nils Adermann2011-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-271-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | * '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-271-1/+1
| | | | | | | | | | | | PHPBB3-10392
* | | [ticket/10384] Update unit tests to test for failing variable.Chris Smith2011-09-241-5/+5
|/ / | | | | | | PHPBB3-10384
* | [ticket/10322] Separate template varref resolution from output generationPatrick Webster2011-09-161-1/+15
| | | | | | | | | | | | | | | | | | 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-081-0/+7
| | | | | | | | PHPBB3-10322
* | [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] Test template DEFINE statements across filesNils Adermann2011-07-171-1/+1
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Refactor $config dependency out of the filterIgor Wiedler2011-07-101-3/+1
| | | | | | | | | | | | | | | | | | | | 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] Moved includephp test to its own file.Oleg Pudeyev2011-05-181-14/+0
| | | | | | | | 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-141-100/+2
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Make INCLUDEPHP relative to board root.Oleg Pudeyev2011-05-121-5/+5
| | | | | | | | 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] 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-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-251-0/+10
| | | | | | | | | | | | | | | | | | 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-251-0/+7
| | | | | | | | PHPBB3-9726
* | [feature/template-engine] Corrected an off-by-one error in nested namespaces.Oleg Pudeyev2011-04-241-1/+10
| | | | | | | | | | | | | | | | 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-241-0/+14
| | | | | | | | | | | | | | | | | | 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