| 163 | } |
| 164 | |
| 165 | func TestEnvVarsInPhpIni(t *testing.T) { |
| 166 | runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, _ int) { |
| 167 | body, _ := testGet("http://example.com/ini.php?key=opcache.enable", handler, t) |
| 168 | assert.Equal(t, "opcache.enable:0", body) |
| 169 | }, &testOptions{ |
| 170 | phpIni: map[string]string{ |
| 171 | "opcache.enable": "${LITERAL_ZERO}", |
| 172 | }, |
| 173 | }) |
| 174 | } |
| 175 | |
| 176 | func TestFinishRequest_module(t *testing.T) { testFinishRequest(t, nil) } |
| 177 | func TestFinishRequest_worker(t *testing.T) { |