(t *testing.T, opts *testOptions)
| 156 | testHelloWorld(t, &testOptions{workerScript: "index.php"}) |
| 157 | } |
| 158 | func 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 | |
| 165 | func TestEnvVarsInPhpIni(t *testing.T) { |
| 166 | runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, _ int) { |
no test coverage detected