From c8dc84d50230e6eb5e9824687ae57319b9afe05c Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 19 Nov 2008 22:39:44 +0000 Subject: Change the regex to assert true for files that match the pattern "#/views/.*?(\.html|mrss)\.php$#" --- 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 7a480962..8af565bd 100644 --- a/core/tests/File_Structure_Test.php +++ b/core/tests/File_Structure_Test.php @@ -39,8 +39,8 @@ class File_Structure_Test extends Unit_Test_Case { // Exception: this file must be named accordingly for the test framework continue; } - $this->assert_false( - preg_match("#/views/.*?(?getPathname()), + $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