diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-11 02:27:00 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-11 02:27:00 +0000 |
commit | 01666c5579b3de40981d9a06a627166e3bddedf6 (patch) | |
tree | 2621b656b07de422be1a7c014a9019ab84fa4bc6 /core/tests/File_Structure_Test.php | |
parent | afb90768b4c61ad7c0fd10dd04bf9bfe9458d4af (diff) |
Fix all file structure issues (tabs, bad preambles, etc).
Note: installer/install.php is now on the "direct access" list.
Diffstat (limited to 'core/tests/File_Structure_Test.php')
-rw-r--r-- | core/tests/File_Structure_Test.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/tests/File_Structure_Test.php b/core/tests/File_Structure_Test.php index 0779dea7..c1160b57 100644 --- a/core/tests/File_Structure_Test.php +++ b/core/tests/File_Structure_Test.php @@ -71,8 +71,9 @@ class File_Structure_Test extends Unit_Test_Case { "in file: {$file->getPathname()}"); } else if (preg_match("|\.php$|", $file->getPathname())) { $actual = $this->_get_preamble($file->getPathname()); - if (strtr($file->getPathName(), DIRECTORY_SEPARATOR, '/') == DOCROOT . "index.php") { - // index.php allows direct access, so modify our expectations for the first line + if (strtr($file->getPathName(), DIRECTORY_SEPARATOR, '/') == DOCROOT . "index.php" || + strtr($file->getPathName(), DIRECTORY_SEPARATOR, '/') == DOCROOT . "installer/install.php") { + // index.php and installer.php allow direct access, so modify our expectations for them $index_expected = $expected; $index_expected[0] = "<?php"; $this->assert_equal($index_expected, $actual, "in file: {$file->getPathname()}"); |