Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: WyriHaximus/reactphp-phpunit-run-tests-in-fiber

3.0.0

26 Apr 22:47
08f1e06
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

Contributors

  • @WyriHaximus
  • @renovate
  • @dependabot
WyriHaximus, renovate, and dependabot
Assets2
Loading

2.0.0

01 Apr 13:45
38db5c3
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

  • 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 ✨

Contributors

  • @WyriHaximus
  • @renovate
WyriHaximus and renovate
Loading

1.0.1

16 Feb 19:19
bfa65c9
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

1.0.1

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

Bug 🐞,Dependencies 📦

Contributors

  • @WyriHaximus
WyriHaximus
Loading

1.0.0

16 Feb 15:38
b9e9327
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

Choose a tag to compare

Usage

<?phpdeclare(strict_types=1);usePHPUnit\Framework\TestCase;useReact\Promise\Promise;useWyriHaximus\React\PHPUnit\RunTestsInFibersTrait;usefunctionReact\Async�wait;finalclass SomeTestextends TestCase{use RunTestsInFibersTrait;/**     * @test     */publicfunctionhappyFlow()    {self::assertTrue(await(newPromise(staticfunction (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.

<?phpdeclare(strict_types=1);usePHPUnit\Framework\TestCase;useReact\Promise\Promise;useWyriHaximus\React\PHPUnit\RunTestsInFibersTrait;useWyriHaximus\React\PHPUnit\TimeOut;usefunctionReact\Async�wait;#[TimeOut(30)]finalclass SomeTestextends TestCase{use RunTestsInFibersTrait;/**     * @test     */    #[TimeOut(0.1)]publicfunctionhappyFlow()    {self::assertTrue(await(newPromise(staticfunction (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 ✨

Contributors

  • @WyriHaximus
  • @dependabot
WyriHaximus and dependabot
Loading

[8]ページ先頭

©2009-2025 Movatter.jp