diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/tests/File_Structure_Test.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/tests/File_Structure_Test.php b/core/tests/File_Structure_Test.php index 8af565bd..0ffa0f9f 100644 --- a/core/tests/File_Structure_Test.php +++ b/core/tests/File_Structure_Test.php @@ -39,9 +39,11 @@ class File_Structure_Test extends Unit_Test_Case { // Exception: this file must be named accordingly for the test framework continue; } - $this->assert_true( - preg_match("#/views/.*?(\.html|mrss)\.php$#", $file->getPathname()), - "{$file->getPathname()} should end in .html.php or mrss.php"); + if (strpos($file, "views")) { + $this->assert_true( + preg_match("#/views/.*?(\.html|mrss)\.php$#", $file->getPathname()), + "{$file->getPathname()} should end in .html.php or mrss.php"); + } } } |