Bug-fix release for the 1.0.x series. The supported PHPUnit and PHP versions are unchanged (~12.5.24 on PHP >= 8.3, ~13.0 on PHP >= 8.4.1).
Bug fixes
- Stop losing assertions across process-isolated tests.
SWOOLE_HOOK_ALLincludesSWOOLE_HOOK_PROC, so theproc_open()call and the pipe reads PHPUnit uses to run a#[RunInSeparateProcess]test yielded the main coroutine while it awaited the child process. No assertion-counting window is open then, so a coroutine left pending by an earlier test could resume in that gap and have its assertions wiped by the next test'sAssert::resetCount()— the same failure mode the STDIO/file exclusions already guard against, and a silent one: the run still exited 0, it just reported fewer assertions than a blocking run.SWOOLE_HOOK_PROCis now excluded as well, so an isolated test blocks the run for the duration of its child process instead of yielding. It gains nothing from counit either way, since the child process is plain non-coroutine PHP. New compatibility tests cover both styles,#[RunInSeparateProcess]and class-level#[RunTestsInSeparateProcesses], and the compatibility workflow now asserts the exact summary line rather than only the exit code. (339f610)
Housekeeping
- Upgrade the CI runners to
ubuntu-24.04and bump the actions in step, including theisbang/compose-actionandnick-invision/retryrepository renames. (3f4aa7e) - Collect the notes from every release into a
CHANGELOG.md. (afe77db)
Full changelog: 1.0.1...1.0.2