This package has been redesigned for compatibility with AMPHP v3 and fibers. AsyncTestCase serves a similar purpose as before, providing helper methods for unit testing within an async context. Each test case is run within a unique fiber to allow suspending during the test run.
AsyncTestCase::setUpAsync()andtearDownAsync()have been removed. UseAsyncTestCase::setUp()andtearDown()instead, as both of these methods are now able to execute async using fibers.AsyncTestCase::createCallback()now returns aClosure. Additionally, an optional parameter for expected arguments upon invocation have been added (usesInvocationMocker::with(...)to set expected arguments).