diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 22:20:23 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 22:20:23 +0000 |
commit | 8825687d0304d3ea520fe540a985ea34a061eb2b (patch) | |
tree | ac04a8fdddb2e7ea647b7121d54f986de3d400c0 | |
parent | 7e5516302c67b7200dad3809b27a17cf3a421bf4 (diff) |
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
-rw-r--r-- | core/tests/File_Structure_Test.php | 6 |
1 files changed, 3 insertions, 3 deletions
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/.*?(?<!\.html)\.php$|", $file->getPathname()), - "{$file->getPathname()} should end in .html.php"); + preg_match("#/views/.*?(?<!(\.html|mrss))\.php$#", $file->getPathname()), + "{$file->getPathname()} should end in .html.php or mrss.php"); } } |