Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
Releases: WyriHaximus/reactphp-phpunit-run-tests-in-fiber
Releases · WyriHaximus/reactphp-phpunit-run-tests-in-fiber
3.0.0
08f1e06 This commit was created on GitHub.com and signed with GitHub’sverified signature.
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 📦
Assets2
Uh oh!
There was an error while loading.Please reload this page.
2.0.0
38db5c3 This commit was created on GitHub.com and signed with GitHub’sverified signature.
- 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 📦
Enhancement ✨
Assets2
Uh oh!
There was an error while loading.Please reload this page.
1.0.1
bfa65c9 This commit was created on GitHub.com and signed with GitHub’sverified signature.
1.0.1
- Total issues resolved:0
- Total pull requests resolved:1
- Total contributors:1
Bug 🐞,Dependencies 📦
Assets2
Uh oh!
There was an error while loading.Please reload this page.
1.0.0
b9e9327 This commit was created on GitHub.com and signed with GitHub’sverified signature.
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 📦
- 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
Assets2
Uh oh!
There was an error while loading.Please reload this page.