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

Function testAutoloader

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

Source from the content-addressed store, hash-verified

477 testAutoloader(t, &testOptions{workerScript: "autoloader.php"})
478}
479func testAutoloader(t *testing.T, opts *testOptions) {
480 runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
481 body, _ := testGet(fmt.Sprintf("http://example.com/autoloader.php?i=%d", i), handler, t)
482
483 assert.Equal(t, fmt.Sprintf(`request %d
484my_autoloader`, i), body)
485 }, opts)
486}
487
488func TestLog_error_log_module(t *testing.T) { testLog_error_log(t, &testOptions{}) }
489func TestLog_error_log_worker(t *testing.T) {

Callers 2

TestAutoloader_moduleFunction · 0.85
TestAutoloader_workerFunction · 0.85

Calls 2

runTestFunction · 0.85
testGetFunction · 0.85

Tested by

no test coverage detected