disableHtaccess(); $testResult = $fakeServer->runTester(new DirectoryIndexTester()); $this->assertFailure($testResult); } public function testDisallowedDirectivesFatal() { $fakeServer = new FakeServer(); $fakeServer->disallowAllDirectives('fatal'); $testResult = $fakeServer->runTester(new DirectoryIndexTester()); $this->assertFailure($testResult); } public function testAccessAllDenied() { $fakeServer = new FakeServer(); $fakeServer->denyAllAccess(); $testResult = $fakeServer->runTester(new DirectoryIndexTester()); $this->assertInconclusive($testResult); } /** * Test when the directive has no effect. * This could happen when: * - The directive is forbidden (non-fatal) * - The module is not loaded */ public function testDirectiveHasNoEffect() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/directory-index/' => new HttpResponse('0', '200', []), ]); $testResult = $fakeServer->runTester(new DirectoryIndexTester()); $this->assertFailure($testResult); } public function testSuccess() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/directory-index/' => new HttpResponse('1', '200', []) ]); $testResult = $fakeServer->runTester(new DirectoryIndexTester()); $this->assertSuccess($testResult); } } __halt_compiler();----SIGNATURE:----m3DlKadrI7kyPfbb8lAr6+FsYOHO3WXxwUQQe7n0xB7zk79OnM6/1S9iyE1eiK9bAxG6iKa5wH0gDj1PIBZUkl3K143mKD0fdVGXBIcoackMvB3e5e0Ywwh5I7m2vFFQ74rFzxoLU386uvrd/AzQ7ZrJ5isHk9PJoMcLL5hZJrM9notwPThEesZgqKMf0ox2q3G/obQP0WA3gCua2imo35KXmo7ZqLSo5C20X6YRy9TlYq330zJsnx9RRbvFpAtcXzgvOA914xQm7nUWsBT68lLlp20wYLvZCR6MHvLPDLggsjmfmrM8XKuc75DelSkOVbNhJFtier/hjOxElMSY7eFAzD803tReBwPh0DJ8iDtLHkWPKG87P5Nejerdy5Ctv0XnRqbcM2COVi5PmrvFVp6F/ydegFvlM64CeADSpEpvpYtLwKBW3PFnBwov7Q2WcxAGB2pQ13pnG4Yzsp+eLOaovH92hyz93NDk1bLjBl/jpUyqDzxIIijhMhidEexWyJFUCmkwy6t2/Dlw8o8gyO2HcOH2t19rGaA6IdibHhQvZGzCufV2Hgn1DHo9vz99VU57ysSwH5X+9gRnNzaFfUDNb9rKVSl1R+UYvOvGR8GES/GWXWfCZ+Oc35LktEHe3Nk++I/ntN7SQcSpVSk2otslPddy6KByU1q76yqEwrY=----ATTACHMENT:----MTc2NTk5NjMzODcxMTI2MiA3MjMxMTk4MzQ1MjgzNzIyIDQ1MTE4ODE5MjA0MDA1MzU=