diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-09-05 01:20:57 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-09-05 01:20:57 -0400 |
commit | 1061e881bd21f0308ce33a395084d291cf2fd0e3 (patch) | |
tree | 64bc5ee4d59521243a315cccec605727e21366fd /tests/template | |
parent | 0d41385344e5ccf782197798c663e2d9fc26f8d7 (diff) | |
download | forums-1061e881bd21f0308ce33a395084d291cf2fd0e3.tar forums-1061e881bd21f0308ce33a395084d291cf2fd0e3.tar.gz forums-1061e881bd21f0308ce33a395084d291cf2fd0e3.tar.bz2 forums-1061e881bd21f0308ce33a395084d291cf2fd0e3.tar.xz forums-1061e881bd21f0308ce33a395084d291cf2fd0e3.zip |
[ticket/10354] Include cache directory path in unwritable message.
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
Diffstat (limited to 'tests/template')
-rw-r--r-- | tests/template/template_test.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/template/template_test.php b/tests/template/template_test.php index 33c82d53ad..5005710220 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -63,9 +63,10 @@ class phpbb_template_template_test extends phpbb_test_case // Test the engine can be used $this->setup_engine(); - if (!is_writable(dirname($this->template->cachepath))) + $template_cache_dir = dirname($this->template->cachepath); + if (!is_writable($template_cache_dir)) { - $this->markTestSkipped("Template cache directory is not writable."); + $this->markTestSkipped("Template cache directory ({$template_cache_dir}) is not writable."); } foreach (glob($this->template->cachepath . '*') as $file) |