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

Function testGet

frankenphp_test.go:123–128  ·  view source on GitHub ↗
(url string, handler func(http.ResponseWriter, *http.Request), t *testing.T)

Source from the content-addressed store, hash-verified

121}
122
123func testGet(url string, handler func(http.ResponseWriter, *http.Request), t *testing.T) (string, *http.Response) {
124 t.Helper()
125 req := httptest.NewRequest(http.MethodGet, url, nil)
126
127 return testRequest(req, handler, t)
128}
129
130func testPost(url string, body string, handler func(http.ResponseWriter, *http.Request), t *testing.T) (string, *http.Response) {
131 t.Helper()

Callers 15

testHelloWorldFunction · 0.85
TestEnvVarsInPhpIniFunction · 0.85
testFinishRequestFunction · 0.85
testPathInfoFunction · 0.85
testHeadersFunction · 0.85
testResponseHeadersFunction · 0.85
testPhpInfoFunction · 0.85
testPersistentObjectFunction · 0.85
testAutoloaderFunction · 0.85
testExceptionFunction · 0.85
testFiberNoCgoFunction · 0.85

Calls 1

testRequestFunction · 0.85

Tested by

no test coverage detected