diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-11 02:02:43 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-11 02:02:43 +0000 |
commit | 7f52500cf9dffa5658e9a675eeead0192d5b910a (patch) | |
tree | c445de1b8b047e3afb78610d9f59bba3b81a408c /core | |
parent | 253c56608eeba50a8e738e6024f833104dda7231 (diff) |
Allow .txt.php views
Diffstat (limited to 'core')
-rw-r--r-- | core/tests/File_Structure_Test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tests/File_Structure_Test.php b/core/tests/File_Structure_Test.php index 34baa1cb..0779dea7 100644 --- a/core/tests/File_Structure_Test.php +++ b/core/tests/File_Structure_Test.php @@ -37,9 +37,9 @@ class File_Structure_Test extends Unit_Test_Case { foreach ($dir as $file) { if (strpos($file, "views")) { $this->assert_true( - preg_match("#/views/.*?(\.html|mrss)\.php$#", + preg_match("#/views/.*?(\.html|mrss|txt)\.php$#", strtr($file->getPathname(), DIRECTORY_SEPARATOR, '/')), - "{$file->getPathname()} should end in .html.php or mrss.php"); + "{$file->getPathname()} should end in .{html,mrss,txt}.php"); } } } |