MCPcopy Index your code
hub / github.com/php/frankenphp / TestGoString

Function TestGoString

types_test.go:28–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestGoString(t *testing.T) {
29 testOnDummyPHPThread(t, func() {
30 originalString := "Hello, World!"
31
32 phpString := PHPString(originalString, false)
33 defer zendStringRelease(phpString)
34
35 assert.Equal(t, originalString, GoString(phpString), "string -> zend_string -> string should yield an equal string")
36 })
37}
38
39func TestPHPMap(t *testing.T) {
40 testOnDummyPHPThread(t, func() {

Callers

nothing calls this directly

Calls 4

testOnDummyPHPThreadFunction · 0.85
PHPStringFunction · 0.85
zendStringReleaseFunction · 0.85
GoStringFunction · 0.85

Tested by

no test coverage detected