From 4c587bdb01e6a7664780c53518a8cbe2858741b3 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 20 Nov 2008 05:24:24 +0000 Subject: Limit File_Structure_Test to only apply the regex expression if views is contained in the path name. --- core/tests/File_Structure_Test.php | 8 +++++--- 1 file changed, 5 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 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"); + } } } -- cgit v1.2.3