(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func 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 | |
| 39 | func TestPHPMap(t *testing.T) { |
| 40 | testOnDummyPHPThread(t, func() { |
nothing calls this directly
no test coverage detected