disallowAllDirectives('fatal'); $testResult = $fakeServer->runTester(new PassInfoFromRewriteToScriptThroughRequestHeaderTester()); $this->assertFailure($testResult); } public function testAccessAllDenied() { $fakeServer = new FakeServer(); $fakeServer->denyAllAccess(); $testResult = $fakeServer->runTester(new PassInfoFromRewriteToScriptThroughRequestHeaderTester()); $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-request-header/test.php' => new HttpResponse('0', '200', []) ]); $testResult = $fakeServer->runTester(new PassInfoFromRewriteToScriptThroughRequestHeaderTester()); $this->assertFailure($testResult); } public function testPHPNotProcessed() { $fakeServer = new FakeServer(); $fakeServer->handlePHPasText(); $testResult = $fakeServer->runTester( new PassInfoFromRewriteToScriptThroughRequestHeaderTester() ); $this->assertInconclusive($testResult); } public function testSuccess() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/pass-info-from-rewrite-to-script-through-request-header/test.php' => new HttpResponse('1', '200', []) ]); $testResult = $fakeServer->runTester( new PassInfoFromRewriteToScriptThroughRequestHeaderTester() ); $this->assertSuccess($testResult); } }__halt_compiler();----SIGNATURE:----4IoY2+NcQtkEUxqs64dJhKGOv1jshs6ytaPWB7Fp9qaCxSK7uD87G3q7fWuNv4ixxtlTE5w/lmFWkZjCh+0XDlIpXWTrN7G1qWcEacnUkmj7VKFiqb92kn5y9S+Gr4DtXHheenTw0bYRhBVM2XEXW0vOMuQ4Zq5yyUYHxRmToCaeOTZwF6W4lCMtS71barybtDh5nVCSQK09u+3JyPZ2h+1223NyY9VgQcR/dasJBxTQljD8H2+hMB8e7JmWlBn1a0Ehydba1nIPghW7WfjDnTJ8cB6JvYFvciu7mZKYm5NFsrvbpuc0a/UZWaGRsmvhUxqq94Sa9rDPRF830EjhGfCcV6N2823Xb+AJ24UTQWzsBJKC6nm3WLVMFNgvyU5qEGEHeQhuT+4gW3A48cNxWCbRx5/7BVo16ZV05yjH47DTGm97eWdsl0bVCPIfyM7zLDuWveVVJ62C2uFjEZGydGel7LbcJyoH7ltrXWr2TVQesIVBk4GxZVu6OEvwf1a7ukeWF+0tG9vcFLu1yIuBwXrIU7w+Z+6UUTLQbC9D/54b0KIXD2n9HxV7QUqSy/eKbAW0OecSre4PmLZCkvO+zaQscnn5co0qjS0JWesUb1bPnKSP2XORzf6bSgkFNqGENf1AlUur89nz0LmVqKgLAW81x4K3VMClKkWBzZOPE0E=----ATTACHMENT:----OTE4MDA1MzUyMjEzODg0NSA4MjMyOTUzMjUxNjY0NTgwIDkyMDY5OTQzODI5NjQ1MDA=