aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'github-p/feature/template-engine' into developNils Adermann2011-08-1324-181/+484
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * github-p/feature/template-engine: (87 commits) [feature/template-engine] Delete _get_locator function. [feature/template-engine] Clean up template locator usage in bbcode. [feature/template-engine] Need to call set_template on template. [feature/template-engine] Update installer for template engine changes. [feature/template-engine] Dependency inject locator into template. [feature/template-engine] Delete useless code from set_template. [feature/template-engine] Delete no longer used $template_filename property. [feature/template-engine] Delete useless $template globalization. [feature/template-engine] Use template engine class in bbcode class. [feature/template-engine] Corrected an error message in template locator. [feature/template-engine] Remaining documentation. [feature/template-engine] More documentation for template class. [feature/template-engine] Create load_and_render to reduce code duplication. [feature/template-engine] Get rid of orig_tpl_* in template engine. [feature/template-engine] Delete $style_name param from locator's set_custom_template. [feature/template-engine] Add constructor to template locator. [feature/template-engine] Factor template locator out of template class. [feature/template-engine] Delete $files_template property. [feature/template-engine] Rename is_absolute to phpbb_is_absolute. [feature/template-engine] Test template DEFINE statements across files ... Conflicts: .gitignore phpBB/includes/template.php
| * [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 remote-tracking branch 'github-bantu/ticket/10265' into developNils Adermann2011-07-161-1/+1
|\ \ | | | | | | | | | | | | * github-bantu/ticket/10265: [ticket/10265] Move mt_rand.php to wrapper folder and add _test suffix.
| * | [ticket/10265] Move mt_rand.php to wrapper folder and add _test suffix.Andreas Fischer2011-07-131-1/+1
| | | | | | | | | | | | PHPBB3-10265
* | | Merge branch 'develop-olympus' into developNils Adermann2011-07-161-0/+130
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10263] Call phpbb_version_compare() from includes/acp/acp_main.php [ticket/10263] Call phpbb_version_compare() from includes/acp/acp_update.php [ticket/10263] Adding unit tests for phpbb_version_compare(). [ticket/10263] Add wrapper for version_compare() that allows the use of A and B
| * \ \ Merge remote-tracking branch 'github-bantu/ticket/10263' into develop-olympusNils Adermann2011-07-161-0/+130
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * github-bantu/ticket/10263: [ticket/10263] Call phpbb_version_compare() from includes/acp/acp_main.php [ticket/10263] Call phpbb_version_compare() from includes/acp/acp_update.php [ticket/10263] Adding unit tests for phpbb_version_compare(). [ticket/10263] Add wrapper for version_compare() that allows the use of A and B
| | * | | [ticket/10263] Adding unit tests for phpbb_version_compare().Andreas Fischer2011-07-131-0/+130
| | |/ / | | | | | | | | | | | | PHPBB3-10263
* | | | Merge branch 'develop-olympus' into developNils Adermann2011-07-161-0/+49
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10243] Adding a few unit tests for phpbb_gmgetdate(). [ticket/10243] Call phpbb_gmgetdate() from various places. [ticket/10243] Adding wrapper function for getdate() for UTC timestamps.
| * | | [ticket/10243] Adding a few unit tests for phpbb_gmgetdate().Andreas Fischer2011-07-131-0/+49
| |/ / | | | | | | | | | PHPBB3-10243
* | | Merge branch 'develop-olympus' into developAndreas Fischer2011-07-051-1/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [prep-release-3.0.9] Update Changelog for 3.0.9 release. [prep-release-3.0.9] Bumping version number for the final 3.0.9 release. [ticket/10247] Removing attempt_id column from the 3.0.8 to 3.0.9-RC1 updater. [ticket/10247] Add a db_tools test for the removal of a primary key column. [ticket/10247] Add empty data section to database update for RC4 [ticket/10247] Remove unecessary attempt_id primary key column Conflicts: phpBB/install/database_update.php
| * | [ticket/10247] Add a db_tools test for the removal of a primary key column.Nils Adermann2011-07-031-1/+9
| | | | | | | | | | | | | | | | | | | | | The previous drop column test already deleted the primary key, so that one was replaced with an ordinary column. PHPBB3-10247
* | | Merge branch 'develop-olympus' into developAndreas Fischer2011-06-121-0/+268
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9892] Correct copyright year [ticket/9892] Remove incorrect use of camel case [ticket/9892] Removing closing php tag from create_schema_files [ticket/9892] Transaction support for database update sql execution function [ticket/9892] count is a keyword in firebird, so renaming this alias [ticket/9892] Q&A CAPTCHA did not work on firebird, so no need to change config [ticket/9892] Shorten login_attempt key names to avoid firebird length problems [ticket/9892] Drop Q&A CAPTCHA tables if left in inconsistent state [ticket/9892] Adding a number of tests for db_tools [ticket/9892] Table prefix lengths influence index lengths in db_tools [ticket/9892] Shorten the index names on the q&a captcha [ticket/9892] column & index name limits, firebird auto increment in db_tools Conflicts: phpBB/develop/create_schema_files.php
| * | [ticket/9892] Correct copyright yearNils Adermann2011-06-121-1/+1
| | | | | | | | | | | | PHPBB3-9892
| * | [ticket/9892] Remove incorrect use of camel caseNils Adermann2011-06-121-2/+2
| | | | | | | | | | | | PHPBB3-9892
| * | [ticket/9892] Adding a number of tests for db_toolsNils Adermann2011-06-121-0/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test creates a table and runs a number of queries on it to judge whether the selected column types can hold the data they are expected to contain. Additional test methods check the auto increment feature and a few of the basic commands of db_tools. This is only a starting point. Plenty more tests need to be added. PHPBB3-9892
* | | Merge branch 'develop-olympus' into developAndreas Fischer2011-06-101-2/+4
|\ \ \ | |/ / | | | | | | | | | * develop-olympus: [ticket/10206] Failed unicode.org downloads no longer terminate tests
| * | [ticket/10206] Failed unicode.org downloads no longer terminate testsNils Adermann2011-06-101-2/+4
| | | | | | | | | | | | | | | | | | Instead a warning is triggered and an explanation echo'd. PHPBB3-10206
* | | [ticket/10198] Test if schema allows reading & writing multibyte config valuesNils Adermann2011-06-101-0/+38
| | | | | | | | | | | | PHPBB3-10198
* | | [ticket/10198] Verify behaviour of validate_config_vars with multibyte stringsNils Adermann2011-06-101-19/+27
| | | | | | | | | | | | | | | | | | Using str_repeat instead of custom function to repeat characters. PHPBB3-10198