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:----QX9/7BEWDO6y+dQzPzta9b+RSNuUVh24PZ1lS59njlvIHDHGMGbRiK+/6sMLzn0p6P3KxicynYB/38s6QSDYvwhegiDGhFkRdEMlxXrGo3J9+DTZrEy1IycpwfZlit4LiSrxoW9hO5uhFIB68krMXhbZTHu7/zfOweYp8fwIDZ2xcGHWQ9IobNTSyEVtOwjuu6pXYeS5JDQwBAKHce97vS7CO1WdtZwbn4zza7Y9COyBHUdg0rt5pEJEQ8edTX6KWPqH/1PB6BPRpKvGwW5QW7SQ9Tp4t9SyQLn+QGsQxlGD8PsZYukCjSz9kD9kRr9CAqJWc0vrk8IUqbnzM1TnKUCYYWzAMv22RIjnpjaFlObd+7VPO6AbdXfjF2wSQjL2nBFpp8c5C1RXSbsaygYaYt6AjjzbIn4Ku4IX6VXsOBdI1rDzL+0TW9KImo7sv0JDCOxkh3n3oIOTNoryireHbB3N7JKlAFC6PRieXGvRXiqbJ+VLyVss06Idk6EeDUJ+fxydPYmRWywadfKke/aBg+NV0x5dI9N845RdYBiCIHmoD7xNRTr1mgulWJ6fzuzA+z/jccZ76eBxl5wtnEsEdcNuAvbDqyriVtqtFg7iAYVLDBvpG4FFTpzDuvN3XJANrX3oYdMdjstMIKPfmkg8OloeR2ssnmjK69hUAhGC5u8=----ATTACHMENT:----NjUxMDM5MDYwMzE2MzAwMyA5Mzk4OTI1NzE0MTc0NTA4IDg4ODg1NDc1MDg2NjM4ODE=