diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 22:39:44 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 22:39:44 +0000 |
commit | c8dc84d50230e6eb5e9824687ae57319b9afe05c (patch) | |
tree | b4dcb27d99edeb0a245b978b3ccb84c138f6187c /core/tests/File_Structure_Test.php | |
parent | 8825687d0304d3ea520fe540a985ea34a061eb2b (diff) |
Change the regex to assert true for files that match the pattern "#/views/.*?(\.html|mrss)\.php$#"
Diffstat (limited to 'core/tests/File_Structure_Test.php')
-rw-r--r-- | core/tests/File_Structure_Test.php | 4 |
1 files changed, 2 insertions, 2 deletions
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/.*?(?<!(\.html|mrss))\.php$#", $file->getPathname()), + $this->assert_true( + preg_match("#/views/.*?(\.html|mrss)\.php$#", $file->getPathname()), "{$file->getPathname()} should end in .html.php or mrss.php"); } } |