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

Function testException

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

Source from the content-addressed store, hash-verified

562 testException(t, &testOptions{workerScript: "exception.php"})
563}
564func testException(t *testing.T, opts *testOptions) {
565 runTest(t, func(handler func(http.ResponseWriter, *http.Request), _ *httptest.Server, i int) {
566 body, _ := testGet(fmt.Sprintf("http://example.com/exception.php?i=%d", i), handler, t)
567
568 assert.Contains(t, body, "hello")
569 assert.Contains(t, body, fmt.Sprintf(`Uncaught Exception: request %d`, i))
570 }, opts)
571}
572
573func TestEarlyHints_module(t *testing.T) { testEarlyHints(t, &testOptions{}) }
574func TestEarlyHints_worker(t *testing.T) {

Callers 2

TestException_moduleFunction · 0.85
TestException_workerFunction · 0.85

Calls 2

runTestFunction · 0.85
testGetFunction · 0.85

Tested by

no test coverage detected