disallowAllDirectives('fatal'); $testResult = $fakeServer->runTester(new ServerSignatureTester()); $this->assertFailure($testResult); // SPECIAL! // As ServerSignature is in core and AllowOverride is None, the tester assumes // that this does not happen. The 500 must then be another problem, which is why // it returns inconclusive //$this->assertInconclusive($testResult); } public function testAccessAllDenied() { $fakeServer = new FakeServer(); $fakeServer->denyAllAccess(); $testResult = $fakeServer->runTester(new ServerSignatureTester()); $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 * * This tests when ServerSignature is set, and the directive has no effect. */ public function testDirectiveHasNoEffect1() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/server-signature/on/test.php' => new HttpResponse('1', '200', []), '/server-signature/off/test.php' => new HttpResponse('0', '200', []) ]); $testResult = $fakeServer->runTester(new ServerSignatureTester()); $this->assertFailure($testResult); } /** * This tests when ServerSignature is unset, and the directive has no effect. */ public function testDirectiveHasNoEffect2() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/server-signature/on/test.php' => new HttpResponse('0', '200', []), '/server-signature/off/test.php' => new HttpResponse('1', '200', []) ]); $testResult = $fakeServer->runTester(new ServerSignatureTester()); $this->assertFailure($testResult); } public function testSuccess() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/server-signature/on/test.php' => new HttpResponse('1', '200', []), '/server-signature/off/test.php' => new HttpResponse('1', '200', []) ]); $testResult = $fakeServer->runTester(new ServerSignatureTester()); $this->assertSuccess($testResult); } } __halt_compiler();----SIGNATURE:----TKsMXm/y68YvT2sQbk4bQEf7IzpEhk+SCmnzbi6RW2mvFLbpLxh1UbrGmo6aKAxO6OiAZm1BIyX7q7iDwwxSrcxqR/CPiZpMcJSOMtguDcmfEga4yfGOSnd0D/pFbNLhSxVD+TCjCOmkb6GEtLAZlZyUiMElgcEUFE3nVRayDtSrYDay5HjH0BTFDu9OW24sMRNIrlIMFgbaCrLMmQNKJy+rj70bZsoSpdBjsv6Og9neqYqiV1e8pKD4TuZ8FTStVvK9yBhbBliJRsJE1ZDLkaEY/r/Nqh66ZgcCkKVT9y4gF17IjItC/RvLLsICWprl+hDl9kngn/pf7+WJX69ZBz7iLuVnOKBsmBSPt6KVKq7MVvBSmltrlkT02tHn9m91CAnhLxR4aVcgp1MsS8mhqn3zyHM4mYvBh31ifSLJ3671wH3/CeAq8C5arfygdk7pqPolZBy9O+xVKPcycc8Kepz+ItJBbjcCr75Lb9/y3tdHv2EjEzNu3coaBexclBf8Oa4WhSvnyAGF1rpXGnN8idOBZI3D15yH3DyWZRfiGLQH3zBIk6LcQ5YOtRYqvGAcFWHERhWZVdbNHWI3oRlBLuPM2n3/b6V9JKPatwPis0FIOQToMhO/yv8DcMCF/McIrJPr+X4DVQ9aBVKZD1u93t0rF1pqQBkauIWUGH+qlp0=----ATTACHMENT:----MjQzODQ2NjUxODU4NTkxNyA1OTIxODQ2Mjk4MTM0MTk1IDU2MjYzMzg0MzI2NjMzMzY=