Skip to content

0.3.5

Choose a tag to compare

@deminy deminy released this 09 Nov 20:49
· 117 commits to master since this release
32552c2

Bug-fix release for the PHPUnit 8/9 maintenance series. Supported versions are unchanged (PHPUnit ~8.0 / ~9.0 on PHP >= 7.2), and no test needs changing. Upgrade if you run PHP 7.2 or PHP 8.5.

Bug fixes

  • counit with Swoole works on PHP 7.2 again. Every release since 0.3.0 died on the first test with "Call to undefined function Deminy\Counit\hrtime()" (hrtime() is PHP 7.3+). (600d026)
  • Manual-approach mock verification on PHP 8.5. One ReflectionProperty::setAccessible() call, deprecated as of PHP 8.5, leaked a deprecation into the first manual-approach test's output, or, with convertDeprecationsToExceptions, disabled mock verification, so a violated never() passed. (600d026)

Changes

  • No more silent fallbacks, as in 1.1.5: when a PHPUnit internal counit depends on changes, the affected feature still falls back rather than failing the run, but now says so in a one-line counit notice: on STDERR. A normal run prints none; COUNIT_SILENCE_TEARDOWN_NOTICE=1 silences them. (4b38495, 2126b78)

Full changelog: 0.3.4...0.3.5