Tags: amphp/phpunit-util
Tags
v3.0.0 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()` and `tearDownAsync()` have been removed. Use `AsyncTestCase::setUp()` and `tearDown()` instead, as both of these methods are now able to execute async using fibers. - `AsyncTestCase::createCallback()` now returns a `Closure`. Additionally, an optional parameter for expected arguments upon invocation have been added (uses `InvocationMocker::with(...)` to set expected arguments).
v3.0.0-beta.4 - Add compatibility with Revolt v1.x - Require PHP 8.1
v3.0.0-beta.3 - Replace deprecated `Amp\Future\all` with `Amp\Future\await`
v3.0.0-beta.2 - Add compatibility with `revolt/event-loop` v0.2.x
PreviousNext