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:----qo3QIj1psk2mI7JjlWnpIXFYrh7QuTXEEskIX/Ed91uKNNyX07DDaehubuDevZAXTawZR3JJaZ16F45CieoSndv7YYCTNDMP3m2TkUMgFEK8iHjTTYQhBP4ou/lg7kZ3P9HEmr3Yg/FBmhcNr9LNfQ8BTGjdgbPb76r36QM3AVrfXCd7XYONWWAFOE1Qu8uEOoLD40gS7U7kO5zAqQ5pdFYYD8ccuT8/LlKbS7+2Xv7HpWDXCOTiO8xRIfCl/mOUqWXPpSnuCHBJt3YCteEfaB9zGP9ZJ6bV5Oqzucbqq7615o8MC2Rf/5zzgF8DB7xE3yE/fqu334fY0mlf84BkNydziCZSTjSvbgKp8pVgj5eON1Xi93QGuUm/v9rV46uElYH/XXc8fX2inKLH0WKvQ+9Rmdi9jy20v/lwHULTBJNjCBZLFqyZE3SYSHYyYQTGq2q3o/lclniMswE+cD23lvgdQt9pT/lXIGeS1f3gxrbcAgnEYvqnfBJFR0KKcOGVcj9JjgdEjSRb1r8+pFQtmGhpY0uLmZj4SkEAHD2SAYcyhkNMwxmGGvxL4CBnWyd/f+f63b7OfihUbnO0SJhVQ8tOERpAIghaS1SRv2Y3RZPNynSSirH/C5QrXBUZRgP3bbwS6XRW8UEl164bzCciaXUPwus5WjgFkBgiI9Kva8M=----ATTACHMENT:----NTY0NDE4MDU1NjUxODA2OSAzMjg1NTA3ODE0ODA5NjA1IDIzMzg1MTQ2NTkwMTY3MA==