php-list-classes-in-directory icon indicating copy to clipboard operation
php-list-classes-in-directory copied to clipboard

Bump wyrihaximus/async-test-utilities from 6.0.0 to 7.0.0

Open dependabot[bot] opened this issue 1 year ago • 0 comments

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 the await 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 a TimeOut 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-deprecated
  • 6bad002 Mark expectCallable* methods deprecated
  • 4b34d28 Merge pull request #196 from WyriHaximus/Add-Deprecations-Label
  • 02d6172 Add Deprecations Label
  • 18e28a0 Merge pull request #195 from WyriHaximus/drop-deprecated-await-methods
  • 161d8f5 Drop deprecated await functions
  • f19172b Merge pull request #194 from WyriHaximus/fun-all-tests-in-a-fiber
  • 5830b95 Run all tests in a fiber
  • eb5413f 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 compatibility score

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)

dependabot[bot] avatar Apr 24 '23 01:04 dependabot[bot]