PackageTrack
Sign in Get early access

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 2026
2025 2026
Release Pre-release

Releases

latest 5
  1. 4.0.0 08 Jun 2026
    Release notes

    4.0.0

    • Total issues resolved: 0
    • Total pull requests resolved: 27
    • Total contributors: 4

    Dependencies 📦

    Dependencies 📦,Enhancement ✨

    Open source →
  2. 3.0.0 26 Apr 2025
    Release notes

    3.0.0

    • Total issues resolved: 0
    • Total pull requests resolved: 5
    • Total contributors: 3

    Dependencies 📦,Enhancement ✨

    Dependencies 📦

    Open source →
  3. 2.0.0 01 Apr 2024
    Release notes
    • 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 ✨

    Dependencies 📦

    Enhancement ✨

    Open source →
  4. 1.0.1 16 Feb 2024
    Release notes

    1.0.1

    • Total issues resolved: 0
    • Total pull requests resolved: 1
    • Total contributors: 1

    Bug 🐞,Dependencies 📦

    Open source →
  5. 1.0.0 16 Feb 2024
    Release notes

    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 📦

    Dependencies 📦

    Feature 🏗

    Enhancement ✨

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive