Registry / testing / wyrihaximus-async-test-utilities

wyrihaximus-async-test-utilities

JSON →
library12.2.0phppackagistunverified

Test utilities for api-clients packages

composer require wyrihaximus/async-test-utilities
INSTALL
IMPORT
SIG · WYRIHAXIMUS-ASYNC-
W
wyrihaximus-async-test-utilities
testingphpv12.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AsyncTestCase
use WyriHaximus\AsyncTestUtilities\AsyncTestCase;

Extend AsyncTestCase to write async tests

use WyriHaximus\AsyncTestUtilities\AsyncTestCase; class MyTest extends AsyncTestCase { public function testAsync() { $this->assertAsync(function() { return \React\Promise\resolve(true); }); } }
Debug
Known issues
gotchaRequires ReactPHP event loop to be installed
fix
Add react/event-loop as a dependency
affects: >=12.0.0
Upgrade
Version history
12.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
55 hits · last 30 days
node
50
Resources
wyrihaximus-async-test-utilities — pip install wyrihaximus-async-test-utilities · libregistry