Skip to content

Commit

Permalink
Merge pull request #55 from WyriHaximus/dependabot/composer/wyrihaxim…
Browse files Browse the repository at this point in the history
…us/async-test-utilities-4.0.0
  • Loading branch information
WyriHaximus authored Jul 26, 2021
2 parents 460d013 + 9788df8 commit af540d9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions tests/FunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit af540d9

Please sign in to comment.