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

Function testPersistentObject

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

Source from the content-addressed store, hash-verified

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)
467
468 assert.Equal(t, fmt.Sprintf(`request: %d
469class exists: 1
470id: obj1
471object id: 1`, i), body)
472 }, opts)
473}
474
475func TestAutoloader_module(t *testing.T) { testAutoloader(t, nil) }
476func TestAutoloader_worker(t *testing.T) {

Callers 2

Calls 2

runTestFunction · 0.85
testGetFunction · 0.85

Tested by

no test coverage detected