From 7f52500cf9dffa5658e9a675eeead0192d5b910a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 11 Jan 2009 02:02:43 +0000 Subject: Allow .txt.php views --- core/tests/File_Structure_Test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/tests/File_Structure_Test.php') 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"); } } } -- cgit v1.2.3