Registry / testing / amphp-phpunit-util

amphp-phpunit-util

JSON →
library3.0.0phppackagistunverified

Helper package to ease testing with PHPUnit.

composer require amphp/phpunit-util
INSTALL
IMPORT
SIG · AMPHP-PHPUNIT-UTIL
A
amphp-phpunit-util
testingphpv3.0.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 Amp\PHPUnit\AsyncTestCase;

Extend AsyncTestCase to write async PHPUnit tests

use Amp\PHPUnit\AsyncTestCase; class MyTest extends AsyncTestCase { public function testAsync() { $this->assertTrue(true); } }
Debug
Known issues
breakingRequires PHP 8.0+ and amphp/amp; older PHP versions are not supported.
fix
Upgrade PHP to 8.0+ and install amphp/amp.
affects: <3.0.0
Upgrade
Version history
3.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
50 hits · last 30 days
node
46
OpenAI (training)
1
Resources
amphp-phpunit-util — pip install amphp-phpunit-util · libregistry