diff options
author | Vjacheslav Trushkin <arty@phpbb.com> | 2012-03-14 23:12:11 +0200 |
---|---|---|
committer | Vjacheslav Trushkin <arty@phpbb.com> | 2012-03-14 23:12:11 +0200 |
commit | b7d84a586c1e253ff7075e80ab721db5c1101c9f (patch) | |
tree | 16e0e179d9f5d0382236ac4865c56e4c7cff3cac /tests/template | |
parent | 7d414d04ca80b3dc5efc7ece4c3c28123a4e7e89 (diff) | |
download | forums-b7d84a586c1e253ff7075e80ab721db5c1101c9f.tar forums-b7d84a586c1e253ff7075e80ab721db5c1101c9f.tar.gz forums-b7d84a586c1e253ff7075e80ab721db5c1101c9f.tar.bz2 forums-b7d84a586c1e253ff7075e80ab721db5c1101c9f.tar.xz forums-b7d84a586c1e253ff7075e80ab721db5c1101c9f.zip |
[feature/merging-style-components] Renaming template classes
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
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/renderer_eval_test.php | 4 | ||||
-rw-r--r-- | tests/template/template_compile_test.php | 2 | ||||
-rw-r--r-- | tests/template/template_inheritance_test.php | 6 | ||||
-rw-r--r-- | tests/template/template_test_case.php | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/template/renderer_eval_test.php b/tests/template/renderer_eval_test.php index 7ebb8b9bda..9b4f74c824 100644 --- a/tests/template/renderer_eval_test.php +++ b/tests/template/renderer_eval_test.php @@ -13,8 +13,8 @@ class phpbb_template_renderer_eval_test extends phpbb_test_case { $compiled_code = '<a href="<?php echo \'Test\'; ?>">'; $valid_code = '<a href="Test">'; - $context = new phpbb_template_context(); - $template = new phpbb_template_renderer_eval($compiled_code, NULL); + $context = new phpbb_style_template_context(); + $template = new phpbb_style_template_renderer_eval($compiled_code, NULL); ob_start(); try { diff --git a/tests/template/template_compile_test.php b/tests/template/template_compile_test.php index a5e8a5e87a..fb158cabd5 100644 --- a/tests/template/template_compile_test.php +++ b/tests/template/template_compile_test.php @@ -16,7 +16,7 @@ class phpbb_template_template_compile_test extends phpbb_test_case protected function setUp() { - $this->template_compile = new phpbb_template_compile(false); + $this->template_compile = new phpbb_style_template_compile(false); $this->template_path = dirname(__FILE__) . '/templates'; } diff --git a/tests/template/template_inheritance_test.php b/tests/template/template_inheritance_test.php index 6987ae6c73..e2a2ac2261 100644 --- a/tests/template/template_inheritance_test.php +++ b/tests/template/template_inheritance_test.php @@ -71,9 +71,9 @@ class phpbb_template_template_inheritance_test extends phpbb_template_template_t $this->template_path = dirname(__FILE__) . '/templates'; $this->parent_template_path = dirname(__FILE__) . '/parent_templates'; - $this->template_locator = new phpbb_template_locator(); - $this->template_provider = new phpbb_template_path_provider(); - $this->template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $this->template_locator, $this->template_provider); + $this->template_locator = new phpbb_style_locator(); + $this->template_provider = new phpbb_style_path_provider(); + $this->template = new phpbb_style_template($phpbb_root_path, $phpEx, $config, $user, $this->template_locator, $this->template_provider); $this->template->set_custom_template($this->template_path, 'tests', $this->parent_template_path, 'parent'); } } diff --git a/tests/template/template_test_case.php b/tests/template/template_test_case.php index 5b60785fee..8eea11e84f 100644 --- a/tests/template/template_test_case.php +++ b/tests/template/template_test_case.php @@ -63,9 +63,9 @@ class phpbb_template_template_test_case extends phpbb_test_case $config = new phpbb_config(array_merge($defaults, $new_config)); $this->template_path = dirname(__FILE__) . '/templates'; - $this->template_locator = new phpbb_template_locator(); - $this->template_provider = new phpbb_template_path_provider(); - $this->template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $this->template_locator, $this->template_provider); + $this->template_locator = new phpbb_style_locator(); + $this->template_provider = new phpbb_style_path_provider(); + $this->template = new phpbb_style_template($phpbb_root_path, $phpEx, $config, $user, $this->template_locator, $this->template_provider); $this->template->set_custom_template($this->template_path, 'tests'); } |