Releases: WyriHaximus/php-async-test-utilities
7.0.1
7.0.1
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Dependencies 📦,JSON 👨💼,PHP 🐘
- 198: Bump react/promise from 2.9.0 to 2.10.0 thanks to @dependabot[bot]
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 React�ventLoop\Loop;
use WyriHaximus\AsyncTestUtilities\AsyncTestCase;
use WyriHaximus\AsyncTestUtilities\TimeOut;
use function React\Async�sync;
use function React\Async�wait;
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);
}
public function testExpectCallableOnce(): void
{
Loop::futureTick($this->expectCallableOnce());
}
}
7.0.0
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 1
Deprecations 👋,NEON 🦹♂️,PHP 🐘,Source 🔮
Configuration ⚙,YAML 🍄
- 196: Add Deprecations Label thanks to @WyriHaximus
Deprecations 👋,NEON 🦹♂️,PHP 🐘,Source 🔮,Tests 🧪
Dependencies 📦,Documentation 📚,Enhancement ✨,Feature 🏗,JSON 👨💼,MarkDown 📝,NEON 🦹♂️,PHP 🐘,Source 🔮,Tests 🧪
- 194: Run all tests in a fiber thanks to @WyriHaximus
6.2.0
6.2.0
- Total issues resolved: 0
- Total pull requests resolved: 5
- Total contributors: 2
Dependencies 📦,JSON 👨💼,PHP 🐘
- 193: Once again unlock wyrihaximus/test-utilities v6 thanks to @WyriHaximus
- 192: Revert "Bump wyrihaximus/test-utilities from 5.4.0 to 5.5.0" thanks to @WyriHaximus
- 191: Bump wyrihaximus/test-utilities from 5.4.0 to 5.5.0 thanks to @dependabot[bot]
- 190: Bump phpunit/phpunit from 9.6.3 to 9.6.7 thanks to @dependabot[bot]
- 185: Unlock test utilities v6 thanks to @WyriHaximus
6.1.0
6.1.0
- Total issues resolved: 0
- Total pull requests resolved: 4
- Total contributors: 2
Dependencies 📦,JSON 👨💼,PHP 🐘
- 184: Bump wyrihaximus/test-utilities from 5.3.1 to 5.4.0 thanks to @dependabot[bot]
- 183: Bump phpunit/phpunit from 9.5.28 to 9.6.1 thanks to @dependabot[bot]
- 181: Bump phpunit/phpunit from 9.5.27 to 9.5.28 thanks to @dependabot[bot]
Enhancement ✨,NEON 🦹♂️,PHP 🐘,Source 🔮
- 182: Deprecate await* functions thanks to @WyriHaximus
6.0.0
6.0.0
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Dependencies 📦,JSON 👨💼,NEON 🦹♂️,PHP 🐘,Source 🔮,Tests 🧪
5.0.25
5.0.25
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
CI 🚧,Configuration ⚙,YAML 🍄
Dependencies 📦,JSON 👨💼,PHP 🐘
5.0.24
5.0.24
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 1
Dependencies 📦,JSON 👨💼,PHP 🐘
- 176: Bump wyrihaximus/test-utilities from 5.2.1 to 5.2.3 thanks to @dependabot[bot]
- 175: Bump phpunit/phpunit from 9.5.26 to 9.5.27 thanks to @dependabot[bot]
- 174: Bump wyrihaximus/test-utilities from 5.2.0 to 5.2.1 thanks to @dependabot[bot]
5.0.23
5.0.23
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
Dependencies 📦,JSON 👨💼,PHP 🐘
5.0.22
5.0.22%0A======%0A%0A- Total issues resolved: 0%0A- Total pull requests resolved: 1%0A- Total contributors: 1%0A%0ADependencies 📦,JSON 👨💼,PHP 🐘%0A-----------------------------%0A%0A - 172: Bump wyrihaximus/test-utilities from 5.1.8 to 5.1.9 thanks to @dependabot[bot]
5.0.21
5.0.21%0A======%0A%0A- Total issues resolved: 0%0A- Total pull requests resolved: 1%0A- Total contributors: 1%0A%0ADependencies 📦,JSON 👨💼,PHP 🐘%0A-----------------------------%0A%0A - 171: Bump wyrihaximus/test-utilities from 5.1.7 to 5.1.8 thanks to @dependabot[bot]