(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestStartAndStopTheMainThreadWithOneInactiveThread(t *testing.T) { |
| 29 | _, err := initPHPThreads(1, 1, nil) // boot 1 thread |
| 30 | assert.NoError(t, err) |
| 31 | |
| 32 | assert.Len(t, phpThreads, 1) |
| 33 | assert.Equal(t, 0, phpThreads[0].threadIndex) |
| 34 | assert.True(t, phpThreads[0].state.Is(state.Inactive)) |
| 35 | |
| 36 | drainPHPThreads() |
| 37 | |
| 38 | assert.Nil(t, phpThreads) |
| 39 | } |
| 40 | |
| 41 | func TestTransitionRegularThreadToWorkerThread(t *testing.T) { |
| 42 | setupGlobals(t) |
nothing calls this directly
no test coverage detected