From 01666c5579b3de40981d9a06a627166e3bddedf6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 11 Jan 2009 02:27:00 +0000 Subject: Fix all file structure issues (tabs, bad preambles, etc). Note: installer/install.php is now on the "direct access" list. --- core/tests/File_Structure_Test.php | 5 +++-- 1 file changed, 3 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 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] = "assert_equal($index_expected, $actual, "in file: {$file->getPathname()}"); -- cgit v1.2.3