(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func TestPHPPackedArray(t *testing.T) { |
| 75 | testOnDummyPHPThread(t, func() { |
| 76 | originalSlice := []string{"bar1", "bar2"} |
| 77 | |
| 78 | phpArray := PHPPackedArray(originalSlice) |
| 79 | defer zendHashDestroy(phpArray) |
| 80 | convertedSlice, err := GoPackedArray[string](phpArray) |
| 81 | require.NoError(t, err) |
| 82 | |
| 83 | assert.Equal(t, originalSlice, convertedSlice, "slice should be equal after conversion") |
| 84 | }) |
| 85 | } |
| 86 | |
| 87 | func TestPHPPackedArrayToGoMap(t *testing.T) { |
| 88 | testOnDummyPHPThread(t, func() { |
nothing calls this directly
no test coverage detected