From 8825687d0304d3ea520fe540a985ea34a061eb2b Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 19 Nov 2008 22:20:23 +0000 Subject: Change the view_files_end_in_html_dot_php_test to view_files_correct_suffix_test and change it to also accept mrss as a valid suffix --- core/tests/File_Structure_Test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 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 d8649896..7a480962 100644 --- a/core/tests/File_Structure_Test.php +++ b/core/tests/File_Structure_Test.php @@ -31,7 +31,7 @@ class File_Structure_Test extends Unit_Test_Case { } } - public function view_files_end_in_html_dot_php_test() { + public function view_files_correct_suffix_test() { $dir = new GalleryCodeFilterIterator( new RecursiveIteratorIterator(new RecursiveDirectoryIterator(DOCROOT))); foreach ($dir as $file) { @@ -40,8 +40,8 @@ class File_Structure_Test extends Unit_Test_Case { continue; } $this->assert_false( - preg_match("|/views/.*?(?getPathname()), - "{$file->getPathname()} should end in .html.php"); + preg_match("#/views/.*?(?getPathname()), + "{$file->getPathname()} should end in .html.php or mrss.php"); } } -- cgit v1.2.3