MCPcopy Index your code
hub / github.com/php/frankenphp / testFinishRequest

Function testFinishRequest

frankenphp_test.go:180–185  ·  view source on GitHub ↗
(t *testing.T, opts *testOptions)

Source from the content-addressed store, hash-verified

178 testFinishRequest(t, &testOptions{workerScript: "finish-request.php"})
179}
180func testFinishRequest(t *testing.T, opts *testOptions) {
181 runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
182 body, _ := testGet(fmt.Sprintf("http://example.com/finish-request.php?i=%d", i), handler, t)
183 assert.Equal(t, fmt.Sprintf("This is output %d\n", i), body)
184 }, opts)
185}
186
187func TestServerVariable_module(t *testing.T) {
188 testServerVariable(t, nil)

Callers 2

TestFinishRequest_moduleFunction · 0.85
TestFinishRequest_workerFunction · 0.85

Calls 2

runTestFunction · 0.85
testGetFunction · 0.85

Tested by

no test coverage detected