php-list-classes-in-directory
php-list-classes-in-directory copied to clipboard
Bump wyrihaximus/async-test-utilities from 6.0.0 to 7.0.0
Bumps wyrihaximus/async-test-utilities from 6.0.0 to 7.0.0.
Release notes
Sourced from wyrihaximus/async-test-utilities's releases.
7.0.0
This release drops all deprecated
await
methods. Use theawait
and other related functions directly.Major new feature in this release:
Since all tests are executed inside a fiber, there is a default timeout of
30
seconds. To lower or raise that timeout this package comes with aTimeOut
attribute. It can be set on the class and method level. When set on both the method level it takes priority over the class level.<?php
declare(strict_types=1);
namespace WyriHaximus\Tests\AsyncTestUtilities;
use ReactventLoop\Loop; use WyriHaximus\AsyncTestUtilities\AsyncTestCase; use WyriHaximus\AsyncTestUtilities\TimeOut;
use function React\Asyncsync; use function React\Asyncwait; use function React\Promise
esolve;
use function React\Promise\Timer\sleep; use function time;
#[TimeOut(0.3)] final class AsyncTestCaseTest extends AsyncTestCase { #[TimeOut(1)] public function testAllTestsAreRanInAFiber(): void { self::expectOutputString('ab');
Loop::futureTick(async(static function (): void { echo 'a'; }));
await(sleep(1));
echo 'b';
}
public function testExpectCallableExactly(): void { $callable = $this->expectCallableExactly(3);
Loop::futureTick($callable); Loop::futureTick($callable); Loop::futureTick($callable);
}
... (truncated)
Commits
52647a9
Merge pull request #197 from WyriHaximus/mark-expectCallable-methods-deprecated6bad002
Mark expectCallable* methods deprecated4b34d28
Merge pull request #196 from WyriHaximus/Add-Deprecations-Label02d6172
Add Deprecations Label18e28a0
Merge pull request #195 from WyriHaximus/drop-deprecated-await-methods161d8f5
Drop deprecated await functionsf19172b
Merge pull request #194 from WyriHaximus/fun-all-tests-in-a-fiber5830b95
Run all tests in a fibereb5413f
Merge pull request #193 from WyriHaximus/once-again-unlock-wyrihaximus-test-u...ae91b55
Once again unlock wyrihaximus/test-utilities v6- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)