MCPcopy Create free account
hub / github.com/php/frankenphp / TestResponseHeaders_worker

Function TestResponseHeaders_worker

frankenphp_test.go:279–281  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

277
278func TestResponseHeaders_module(t *testing.T) { testResponseHeaders(t, nil) }
279func TestResponseHeaders_worker(t *testing.T) {
280 testResponseHeaders(t, &testOptions{workerScript: "response-headers.php"})
281}
282func testResponseHeaders(t *testing.T, opts *testOptions) {
283 runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
284 body, resp := testGet(fmt.Sprintf("http://example.com/response-headers.php?i=%d", i), handler, t)

Callers

nothing calls this directly

Calls 1

testResponseHeadersFunction · 0.85

Tested by

no test coverage detected