(t *testing.T)
| 37 | } |
| 38 | |
| 39 | func TestPHPMap(t *testing.T) { |
| 40 | testOnDummyPHPThread(t, func() { |
| 41 | originalMap := map[string]string{ |
| 42 | "foo1": "bar1", |
| 43 | "foo2": "bar2", |
| 44 | } |
| 45 | |
| 46 | phpArray := PHPMap(originalMap) |
| 47 | defer zendHashDestroy(phpArray) |
| 48 | convertedMap, err := GoMap[string](phpArray) |
| 49 | require.NoError(t, err) |
| 50 | |
| 51 | assert.Equal(t, originalMap, convertedMap, "associative array should be equal after conversion") |
| 52 | }) |
| 53 | } |
| 54 | |
| 55 | func TestOrderedPHPAssociativeArray(t *testing.T) { |
| 56 | testOnDummyPHPThread(t, func() { |
nothing calls this directly
no test coverage detected