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

Function TestPersistentObject_worker

frankenphp_test.go:461–463  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

459
460func TestPersistentObject_module(t *testing.T) { testPersistentObject(t, nil) }
461func TestPersistentObject_worker(t *testing.T) {
462 testPersistentObject(t, &testOptions{workerScript: "persistent-object.php"})
463}
464func testPersistentObject(t *testing.T, opts *testOptions) {
465 runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
466 body, _ := testGet(fmt.Sprintf("http://example.com/persistent-object.php?i=%d", i), handler, t)

Callers

nothing calls this directly

Calls 1

testPersistentObjectFunction · 0.85

Tested by

no test coverage detected