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:----B6F4FPr3sQYK3QnK2cfh6khgLnNSEVllkN2eL0hofFlAQrLSATSZDvmUcrxiDIfku+WNxfg01MIX8+n8EBMPSVzFfQ7ReMvSje2YaIPF7UgEoFVRAGi3oMho45Md8molcEwO5Essznxezjp+fJfsm5ahmaUg53c4isx2ufW/vN5o4VwsP5hftlxIK4QUDX/Vu5KpK219JDawrPdG+191KqjEbhRF2wRG15UvOpsQNr0RO8RFtxpdhP8uNbDJK5KS5pgswgYu03XqaJvdmg87OVA9e6mzysUMtCfNdm8HRWzJhVBF0uzcwTqMfDGt2tVRByk6eWEFsp4X98cWAn0mOSh50CPPXXN9YNSFEdZbt6tE75pwkoMTHuQFGN9Zu1HoHCfRAYPw/3I9PWupQtaQFvGGN0PGCqoosRwJMU/vF8nC2xyqge33fI1Njb/JDSGz7JCEWsgXni5RiOPvKKaVpxVRGcVG1Yj9fmCtU4ki+JUIPjeKcSBWq1Oyfx+St7De25bH75KbIPpL+ATIhwGmS+duQA5A46tLV5u244NvodQgsh7+hcbFPQZgRmWNop8sxh8CT8SF1hb8+BH2w1witSb5IbcZdpz2V5+DTiFA6j/Q822tVQxe8mvaTHQFzWGHg0aVqZuQ/zOL9vNDS4H/CcuIY6UdGvmuvxmbDUbE4kA=----ATTACHMENT:----NTE4MTA0OTgzNjcwOTc5NiAyOTczMzE0NDI1MDA4NTg1IDkwMDk1MjgwNDU2ODg0OTg=