wyrihaximus/react-phpunit-run-tests-in-fiber
Trait to run all tests in a fiber
4.0.0
580K downloads/mo
#2664 most downloaded on Packagist
WyriHaximus/reactphp-phpunit-run-tests-in-fiber
What this package is like to depend on
Last release 2 months ago
08 Jun 2026
Ships fairly regularly
a new release about every 13 months
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
5 releases · first in 2024
1 release in the last 12 months
see the full history below
Release timeline
5 releases · Feb 2024 to Jun 2026Releases
latest 5-
4.0.008 Jun 2026Release notes
Open source →4.0.0
- Total issues resolved: 0
- Total pull requests resolved: 27
- Total contributors: 4
Dependencies 📦
- 57: Bump composer/composer from 2.9.3 to 2.9.8 thanks to @dependabot[bot]
- 56: Update dependency phpunit/phpunit to v12.5.22 [SECURITY] - autoclosed thanks to @renovate-runner[bot]
- 55: Bump composer/composer from 2.9.3 to 2.9.7 thanks to @dependabot[bot]
- 54: Update dependency wyrihaximus/makefiles to ^0.10.6 thanks to @renovate-runner[bot]
- 53: Update dependency wyrihaximus/makefiles to ^0.10.2 thanks to @renovate-runner[bot]
- 51: Update dependency wyrihaximus/makefiles to ^0.9.0 thanks to @renovate-runner[bot]
- 50: Update dependency phpunit/phpunit to v13 - autoclosed thanks to @renovate-runner[bot]
- 49: Bump symfony/process from 8.0.3 to 8.0.5 thanks to @dependabot[bot]
- 48: Update dependency phpunit/phpunit to v12.5.8 [SECURITY] thanks to @renovate-runner[bot]
- 47: Update dependency wyrihaximus/makefiles to ^0.8.3 thanks to @renovate-runner[bot]
- 46: Update dependency wyrihaximus/test-utilities to v12 thanks to @renovate-runner[bot]
- 45: Update QA Utilities thanks to @renovate-runner[bot]
- 42: Bump composer/composer from 2.8.12 to 2.9.3 thanks to @dependabot[bot]
- 41: Update dependency wyrihaximus/makefiles to ^0.7.16 - autoclosed thanks to @renovate-runner[bot]
- 40: Update dependency wyrihaximus/makefiles to ^0.7.15 thanks to @renovate-runner[bot]
- 39: Update dependency wyrihaximus/makefiles to ^0.7.14 - autoclosed thanks to @renovate-runner[bot]
- 38: Update dependency wyrihaximus/makefiles to ^0.7.13 - autoclosed thanks to @renovate-runner[bot]
- 37: Update dependency wyrihaximus/makefiles to ^0.7.12 thanks to @renovate-runner[bot]
- 36: Update dependency wyrihaximus/makefiles to ^0.7.11 thanks to @renovate-runner[bot]
- 34: Update dependency wyrihaximus/test-utilities to ^8.6.0 thanks to @renovate-runner[bot]
- 33: Update dependency wyrihaximus/makefiles to ^0.7.10 thanks to @renovate-runner[bot]
- 28: Update dependency wyrihaximus/makefiles to ^0.7.5 thanks to @renovate-runner[bot]
- 27: PHP 8.4 + QA updates thanks to @WyriHaximus
- 24: Update dependency wyrihaximus/makefiles to ^0.5.0 - autoclosed thanks to @renovate-runner[bot]
- 21: Update dependency wyrihaximus/makefiles to ^0.3.0 || ^0.4.0 thanks to @renovate[bot]
- 20: Update dependency wyrihaximus/makefiles to ^0.3.0 || ^0.4.0 - autoclosed thanks to @renovate[bot]
Dependencies 📦,Enhancement ✨
-
3.0.026 Apr 2025Release notes
Open source →3.0.0
- Total issues resolved: 0
- Total pull requests resolved: 5
- Total contributors: 3
Dependencies 📦,Enhancement ✨
- 19: Update to latest stable makefiles and test utils thanks to @WyriHaximus
- 17: Switch to centralized Makefiles thanks to @WyriHaximus
Dependencies 📦
- 18: Update dependency wyrihaximus/makefiles to ^0.1.0 || ^0.2.0 thanks to @renovate[bot]
- 16: Bump composer/composer from 2.7.2 to 2.7.7 thanks to @dependabot[bot]
- 15: Update dependency phpunit/phpunit to v12 thanks to @renovate[bot]
-
2.0.001 Apr 2024Release notes
Open source →- PHP8.2+
- PHPUnit 10+ + added it as a dependency to enforce supported versions
2.0.0
- Total issues resolved: 0
- Total pull requests resolved: 7
- Total contributors: 2
Bug 🐞
Dependencies 📦,Enhancement ✨
- 14: Add phpunit/phpunit as dependency to lock down supported versions thanks to @WyriHaximus
- 11: Drop promise v2 support thanks to @WyriHaximus
- 8: Bump to PHP 8.2+ thanks to @WyriHaximus
Dependencies 📦
- 13: Update dependency wyrihaximus/test-utilities to v6 thanks to @renovate[bot]
Enhancement ✨
-
1.0.116 Feb 2024Release notes
Open source →1.0.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Bug 🐞,Dependencies 📦
-
1.0.016 Feb 2024Release notes
Open source →Usage
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use React\Promise\Promise; use WyriHaximus\React\PHPUnit\RunTestsInFibersTrait; use function React\Async�wait; final class SomeTest extends TestCase { use RunTestsInFibersTrait; /** * @test */ public function happyFlow() { self::assertTrue(await(new Promise(static function (callable $resolve): void { $resolve(true); }))); } }
Timeouts
This package supports marking a test failed once a timeout has been reached. Note that this doesn't stop anything
running in the fiber the rest runs in or cleans up the loop as we cannot kill the running fiber once it starts. An
exception is thrown in the scope between the test and PHPUnit that handles running the test in a fiber. And this is out
of control of the test.<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use React\Promise\Promise; use WyriHaximus\React\PHPUnit\RunTestsInFibersTrait; use WyriHaximus\React\PHPUnit\TimeOut; use function React\Async�wait; #[TimeOut(30)] final class SomeTest extends TestCase { use RunTestsInFibersTrait; /** * @test */ #[TimeOut(0.1)] public function happyFlow() { self::assertTrue(await(new Promise(static function (callable $resolve): void { $resolve(true); }))); } }
1.0.0
- Total issues resolved: 0
- Total pull requests resolved: 5
- Total contributors: 2
Bug 🐞,Dependencies 📦
- 3: Set up package thanks to @WyriHaximus
Dependencies 📦
- 5: Bump composer/composer from 2.6.6 to 2.7.0 thanks to @dependabot[bot]
Feature 🏗
- 6: Enforce timeouts thanks to @WyriHaximus
- 1: Set up package thanks to @WyriHaximus
Enhancement ✨
- 4: Add documentation thanks to @WyriHaximus