You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are multiple ways to test socket connections. On a lower level, you may want to (partially) mock the ConnectionInterface to test event handlers for unit testing. On a higher level, you may want to create actual socket connections and transmit data for some integration tests. On the highest level, you may want to run your actual network service in a CI environment and run actual commands against this service for some integration and/or acceptance tests.
I believe this has been answered, so I'm closing this for now. Please come back with more details if this problem persists and we can always reopen this 👍
Hello i have a really dumb quesiton, i'm trying to test some application that use reactphp/socket over TCP connection it's half-duplex communication..
Who i can simulate the event loop and test the
on
event, likeon('data',
, etc..p.s.: I don't want to use mock, i think that mocking isn't a good case for me, or at least i think using "real" colaborator is better.
The text was updated successfully, but these errors were encountered: