From 9788df82f99abc55255499c52439dc22adbf9906 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jul 2021 12:03:47 +0000 Subject: [PATCH] Bump wyrihaximus/async-test-utilities from 3.4.24 to 4.0.0 Bumps [wyrihaximus/async-test-utilities](https://github.com/WyriHaximus/php-async-test-utilities) from 3.4.24 to 4.0.0. - [Release notes](https://github.com/WyriHaximus/php-async-test-utilities/releases) - [Commits](https://github.com/WyriHaximus/php-async-test-utilities/compare/3.4.24...4.0.0) --- updated-dependencies: - dependency-name: wyrihaximus/async-test-utilities dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- composer.lock | 16 ++++++++-------- tests/FunctionsTest.php | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/composer.json b/composer.json index 2f9bf82..8a0613b 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "react/promise": "^2.8" }, "require-dev": { - "wyrihaximus/async-test-utilities": "^3.4.24" + "wyrihaximus/async-test-utilities": "^3.4.24 || ^4.0.0" }, "config": { "platform": { diff --git a/composer.lock b/composer.lock index c36c492..dddbbc7 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "23d5056503e95168ce263e330209a8e0", + "content-hash": "208c565f2ca6d172645a52f573da3bf1", "packages": [ { "name": "react/event-loop", @@ -8255,23 +8255,23 @@ }, { "name": "wyrihaximus/async-test-utilities", - "version": "3.4.24", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/WyriHaximus/php-async-test-utilities.git", - "reference": "fee2c6404f646d3c4040974040a2001d22a92de7" + "reference": "9ac7c4f4b33fe9dd47c9e98c8cace21260835767" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WyriHaximus/php-async-test-utilities/zipball/fee2c6404f646d3c4040974040a2001d22a92de7", - "reference": "fee2c6404f646d3c4040974040a2001d22a92de7", + "url": "https://api.github.com/repos/WyriHaximus/php-async-test-utilities/zipball/9ac7c4f4b33fe9dd47c9e98c8cace21260835767", + "reference": "9ac7c4f4b33fe9dd47c9e98c8cace21260835767", "shasum": "" }, "require": { "clue/block-react": "^1.4", "php": "^8 || ^7.4", "phpunit/phpunit": "^9.5", - "react/event-loop": "^1.1", + "react/event-loop": "^1.2", "react/promise": "^2.8", "wyrihaximus/test-utilities": "^3.7.0" }, @@ -8297,7 +8297,7 @@ "description": "Test utilities for api-clients packages", "support": { "issues": "https://github.com/WyriHaximus/php-async-test-utilities/issues", - "source": "https://github.com/WyriHaximus/php-async-test-utilities/tree/3.4.24" + "source": "https://github.com/WyriHaximus/php-async-test-utilities/tree/4.0.0" }, "funding": [ { @@ -8305,7 +8305,7 @@ "type": "github" } ], - "time": "2021-04-05T21:31:31+00:00" + "time": "2021-07-23T17:27:19+00:00" }, { "name": "wyrihaximus/coding-standard", diff --git a/tests/FunctionsTest.php b/tests/FunctionsTest.php index 321d8e4..89a93a8 100644 --- a/tests/FunctionsTest.php +++ b/tests/FunctionsTest.php @@ -24,7 +24,7 @@ public function testFuturePromise(): void $inputData = 'foo.bar'; $promise = futurePromise($inputData); - $data = $this->await($promise, Loop::get()); + $data = $this->await($promise); self::assertSame($inputData, $data); unset($promise); @@ -39,7 +39,7 @@ public function testTimedPromise(): void $inputData = 'foo.bar'; $promise = timedPromise(0.23, $inputData); - $data = $this->await($promise, Loop::get()); + $data = $this->await($promise); self::assertSame($inputData, $data); unset($promise); @@ -82,7 +82,7 @@ public function testTickingPromise(): void }; $promise = tickingPromise(1, $callback, $inputData); - $data = $this->await($promise, Loop::get()); + $data = $this->await($promise); self::assertSame($inputData, $data); foreach ($fired as $fire) { @@ -143,7 +143,7 @@ public function testFutureFunctionPromise($inputData, $outputDate, $function): v $promise = futureFunctionPromise($inputData, $function); - $data = $this->await($promise, Loop::get()); + $data = $this->await($promise); self::assertSame($outputDate, $data); unset($promise);