Contributed to open source
Built a feature

Design & Implemented AsyncTestCase for amphp/phpunit-util!


Before this implementation writing unit tests with Amp required a decent amount of boilerplate, managing your own loop, and relying on functionality deprecated in later versions of PHPUnit. The AsyncTestCase implementation helps reduce the amount of boilerplate you have to write, manages the loop for you, and resolves Promises and Generators returned from your tests. This TestCase has become the de facto way to test Amp projects and you should absolutely check this library out if you're having problems with your asynchronous tests.