diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-07-30 17:06:22 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-07-30 17:06:22 -0400 |
| commit | 05b71ca04e8584428d335512a199e8c71c53a74f (patch) | |
| tree | 1e11932df5698ba4b1fadb938f9fdd98bf7f9695 /tests/template | |
| parent | 4126a571aceca6266b565a0ef1f85cef5230a521 (diff) | |
| download | forums-05b71ca04e8584428d335512a199e8c71c53a74f.tar forums-05b71ca04e8584428d335512a199e8c71c53a74f.tar.gz forums-05b71ca04e8584428d335512a199e8c71c53a74f.tar.bz2 forums-05b71ca04e8584428d335512a199e8c71c53a74f.tar.xz forums-05b71ca04e8584428d335512a199e8c71c53a74f.zip | |
[feature/template-engine] Factor template locator out of template class.
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
Diffstat (limited to 'tests/template')
| -rw-r--r-- | tests/template/template_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 2a5a53637d..44baeaf8f0 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -256,7 +256,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case $this->template->set_filenames(array('test' => $filename)); $this->assertFileNotExists($this->template_path . '/' . $filename, 'Testing missing file, file cannot exist'); - $expecting = sprintf('_source_file_for_handle(): File %s does not exist', realpath($this->template_path . '/../') . '/templates/' . $filename); + $expecting = sprintf('template locator: File %s does not exist', realpath($this->template_path . '/../') . '/templates/' . $filename); $this->setExpectedTriggerError(E_USER_ERROR, $expecting); $this->display('test'); @@ -264,7 +264,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case public function test_empty_file() { - $expecting = 'template->set_filenames: Empty filename specified for test'; + $expecting = 'template locator: set_filenames: Empty filename specified for test'; $this->setExpectedTriggerError(E_USER_ERROR, $expecting); $this->template->set_filenames(array('test' => '')); |
