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:----EhjtSheRT8pKdnX8ywTpXKDV9l4jFO9cLrV0wdsC8w6+/s9KrutC9Lt2suv4bCyyU0Z1C/sdQUKO9LNwoiRa0k6YWV6Wbj4XBf1wXANlzy3HWBHbTvcOFBwMhrQDACvaMShkeVxfBECAQRtQIT6sKfbm3fINlk4Lj511vk7vfpjGhHUoMJDQ1A+NCA0mEM8j4yCTjhqi21ULfvQA2/2L/MznnJ6Ku2Qbm4Iyfh5keSVHzee5IPQA4Gz/7wTAz9SpVK4B9Rd8HpCU+I8bbxLBhP18dPKIA8r6ZQQTrLY+jXfwuACCmKZ405kueneRKITHiGYO8j0NTo3EKBLq4gj2R8H9myfk2MgCRhO5NcKhhbZYw5Jxk4Iblsp5EP3/FOIbzRK56SqRFo6e3RrddSIV3JP0QyM/jNSZGR+kY34o/5VUR0ljBAi53DYFkZQ8GEizZYoNx9TXb+Q8GH4QvSTnAHKIY2j2hpSqD+rfcOITv9m6sr1r+TacczWHbUOPEhVF0wbHomDJXI3zh5Vz1Dkg4CSEgGcXmaiNw6s31CynGD0hfinvn8lpNtrxsOLN+8T0UjTgNdUwDCMIpUGODxYL3BG1rP/KUDwT9nMI4IRu5QyvAqPXBJKUvqsfxC1cXMF34Ip+zhZw5xXzCNNAw4ThBBv4Y0WtX7RpZTMmAcVAl/U=----ATTACHMENT:----MjcwMjE0OTE5Mjc5MDk1MSA5MjQ2MjgxNTM2OTQ0MTc0IDgxMTc4MTM3MTM1Mjg2NDE=