Skip to content

1.0.2

Latest

Choose a tag to compare

@deminy deminy released this 28 Jul 01:53
afe77db

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_ALL includes SWOOLE_HOOK_PROC, so the proc_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's Assert::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_PROC is 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.04 and bump the actions in step, including the isbang/compose-action and nick-invision/retry repository renames. (3f4aa7e)
  • Collect the notes from every release into a CHANGELOG.md. (afe77db)

Full changelog: 1.0.1...1.0.2