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:----kvJwZtL8lVW6kNrBPK/7sBsqpeMR9GNTw1VpRPZWUKUq2vXEi37CnXNqXiRtThreRCA3C88wg4NTUtgNCpZTNwQnJLekGCRHLPt3amAMyscmxoLv7VbNw7HYlAYM35xMGRoYY7/VEwCHaZEajah2YppwGdZMp62cTBAOR/eR0xFI1Yzvu3jiEoEIKu1rlzpScbIh7BiiTArjqKAUrDgSnSl+TeQePgiks/h3mL6nQpsjQ3rGC1CC+CvcyLUWFE00vpPQwNSENxN2lRka7FEDIkpyPzv5cO7B+tSiyT+BX1vkAgwq05rm9XkceBx5VLjuvFjsT98XQH1apb+ogxyEYVjem8bffC3NLABXiJFnqunKljzvnQ6jx2iNmSfrKbsSfLAhaekPkS0oQi+7e8WXaYFIG2zm3qyhRf5X41A0fRVUcbz8uO+mfnA3E2Yoo40CfhgueyzKpZKxsZ1KENLFimn7T9SlWzhGPGPuDKMi5MY9jyxX2zO1ZWuajmnMmsU+6UFZttv3AmHPoyiUe0sG38n7XILgjFXrxSlX7NnF5nOYmhqXxARdog+ynMHE1euCteBnySfQagELLEbm10Sv0ipFCA/q/ZiWe1VCSC5Eh4g3auD5sjliOEjyV2ouXVgQ3DtGlp30DSCxaFQ1LRIqWm97vSZ44xYfSpr61zhJMs4=----ATTACHMENT:----Njc0Nzg2ODkwMzIwNDQ4IDczNTM3OTMyNzUxNjY4OTUgNjM2OTk3MzIzNjM4NTAwNw==