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

Function testHelloWorld

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

Source from the content-addressed store, hash-verified

156 testHelloWorld(t, &testOptions{workerScript: "index.php"})
157}
158func testHelloWorld(t *testing.T, opts *testOptions) {
159 runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
160 body, _ := testGet(fmt.Sprintf("http://example.com/index.php?i=%d", i), handler, t)
161 assert.Equal(t, fmt.Sprintf("I am by birth a Genevese (%d)", i), body)
162 }, opts)
163}
164
165func TestEnvVarsInPhpIni(t *testing.T) {
166 runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, _ int) {

Callers 2

TestHelloWorld_moduleFunction · 0.85
TestHelloWorld_workerFunction · 0.85

Calls 2

runTestFunction · 0.85
testGetFunction · 0.85

Tested by

no test coverage detected