disableHtaccess(); $testResult = $fakeServer->runTester(new AddTypeTester()); $this->assertFailure($testResult); } public function testDisallowedDirectivesFatal() { $fakeServer = new FakeServer(); $fakeServer->disallowAllDirectives('fatal'); $testResult = $fakeServer->runTester(new AddTypeTester()); $this->assertFailure($testResult); } public function testAccessAllDenied() { $fakeServer = new FakeServer(); $fakeServer->denyAllAccess(); $testResult = $fakeServer->runTester(new AddTypeTester()); $this->assertInconclusive($testResult); } /** * Test when the directive has no effect. * This could happen when: * - The directive is forbidden (non-fatal) * - The module is not loaded */ public function testDirectiveHasNoEffect() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/add-type/request-me.test' => new HttpResponse('hi', '200', []) ]); $testResult = $fakeServer->runTester(new AddTypeTester()); $this->assertFailure($testResult); } public function testSuccess() { $fakeServer = new FakeServer(); $fakeServer->setResponses([ '/add-type/request-me.test' => new HttpResponse('hi', '200', ['Content-Type' => 'image/gif']) ]); $testResult = $fakeServer->runTester(new AddTypeTester()); $this->assertSuccess($testResult); } } __halt_compiler();----SIGNATURE:----lURQToVjdloGP5EKqudaB0zFeywlbGmSHCvJhBOkcwibxCMNKNbnIY4xalp2obmMUTkqGU17vRt0oWEf8nlU+5tXLzCrMVyub00vQfUEnaRkqMl+jaKXZ9Cs9xA9wsk//9gXBS20lokP70JRvX7vK66NcJ5dvlplzRHLalrjj5Z3MwKg+V9jAZXi4dVHg5Go0WW/d1k9YTTQBUbLonOOdiak5KoGjl9F/7KQhqDUb1HYLNC6YQFfj03mpRixEq00z+pA1nzQGqBM2UguSQWL814kTfmZjYa5ShHsgdOBHpOV8glVWIaxlelJuIVNxJka/NLo6dAcUrvlIMjvibHsisMdEngXuBoLtw/bjM+sMl2+53dpnOVe5Rz5/RtnHmJZGdMHUVBkBFaXHf1/7fAqCEUInP2SPFrjzCdl2tFq1RfqQhQ4hqv4dx/Fr8ts/aMdPIVYXZgIsnoXtHBDVkxh+FNb6gTylM1VE3kbsv+ZERJed6MTuQJ0InQRuK5wr3VDZUdQSuUPED8ylrznpb+GRwBQ9FInf0xC8QqJiWEP6fUHYxkeCsZ2wEKAUxOaHJPim/5UknU+45a2AvFExZcgWku3mjOywKtxP2BJmN7D7RPjnZYLE0przHE9wBru5IG6xCzfUzctzwXBOr0sONrKZe/Z92baz4hr6jvdKNDgjLQ=----ATTACHMENT:----OTk4ODUwMjk2ODcxNDgzMyA2Mzg1MzYzNDk1Njk5OTAzIDM1Njc1NTExODQ1MzI3Mzg=