Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Content-Length: 237303 | pFad | http://github.com/reactphp/reactphp/discussions/586
8D2Fetched URL: http://github.com/reactphp/reactphp/discussions/586
Alternative Proxies:
Uh oh!
There was an error while loading. Please reload this page.
-
Hey fam, I am writing a trading bot which is using a polling system to get the latest price as the provider's webs-socket stream is not providing the latest price data.
Here's the PriceFetcher.php class:
The issue is when I am writing a unit test using PHPUnit, the callback inside the addPeriodicTimer is not triggered, hence the test fails.
Note: I am mocking the Loop, Browser, and Logger class inside the unit test
Any Help would be appreciated
Beta Was this translation helpful? Give feedback.
All reactions