disallowAllDirectives('fatal'); $testResult = $fakeServer->runTester(new PassInfoFromRewriteToScriptThroughEnvTester()); $this->assertFailure($testResult); } public function testAccessAllDenied() { $fakeServer = new FakeServer(); $fakeServer->denyAllAccess(); $testResult = $fakeServer->runTester(new PassInfoFromRewriteToScriptThroughEnvTester()); $this->assertInconclusive($testResult); } /** * Test when the magic is not working * This could happen when: * - Any of the directives are forbidden (non-fatal) * - Any of the modules are not loaded * - Perhaps these advanced features are not working on all platforms * (does LiteSpeed ie support these this?) */ public function testMagicNotWorking() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/pass-info-from-rewrite-to-script-through-env/test.php' => new HttpResponse('0', '200', []) ]); $testResult = $fakeServer->runTester(new PassInfoFromRewriteToScriptThroughEnvTester()); $this->assertFailure($testResult); } public function testPHPNotProcessed() { $fakeServer = new FakeServer(); $fakeServer->handlePHPasText(); $testResult = $fakeServer->runTester( new PassInfoFromRewriteToScriptThroughEnvTester() ); $this->assertInconclusive($testResult); } public function testSuccess() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/pass-info-from-rewrite-to-script-through-env/test.php' => new HttpResponse('1', '200', []) ]); $testResult = $fakeServer->runTester( new PassInfoFromRewriteToScriptThroughEnvTester() ); $this->assertSuccess($testResult); } }__halt_compiler();----SIGNATURE:----iA1FLQS87fALzGPBZFa6ayJHTL7A+pUNm+ykElHL9D3RfCZ+fxL6V5hUSKf3pu+Y5t7tF7PpOKG36DDSyXxxJm4NNemY8LECkBXEfWT4KXog9YI4S2fwDisCV03pA7zY9+ySBzQsSBYaI24XKWbRjY+b+oMax9O137hOx/eIB2x+BFp/ZugmAM9N16xWyvFWux1RDXRgki4LncfjMprHvcTFUTL8QOQY5wYd94WSNLd9YiiSqLOyP7kJ8r8t9peK6BbxD41cxNBMxzZF9WOM0/pvHR6njN3PbYebP249F67m6Z8anp7ojOZMXyc3aSqLws0Rhg5rPLgPeRxxTGJmrV+2BRte9XM2sK2vzVXiYg7OOT0KE93b+GIeEE4UhVVM4AeGQsDjZ6upDdG75JynLmosRFYVFjwXBtnoxZC8My7WymK7P7kaa19UaQw8/M6kyCtnKucg+DANGXnZqbJfndjGUMsmjAVInbTcKP1MWno7tQgS3qUuNTWPKwxEQNVD091Y7hNta3mwOGWK0bGvTfsSMCQJl0qXj4IZEwdT5ecc9PmyT/EgdMZ2ce/NfwADl5LVKVclk4uQF3/IqDfNZOFsCNRTuxYAYxFREPUGZNoUkJeHPGrj6yAaJn6i5m3nbnAed7WsGDdgF90GScrDA9elA1/k2IQsrijh8SNdEyw=----ATTACHMENT:----NTI0MDQ0MzUwMzUzMTcyIDM1MjIzNDc3MjIxMjE2NjggNjg3Nzc3NjEwOTU1MTQ1Mg==