mirror of
https://github.com/danog/amp.git
synced 2024-11-27 12:35:02 +01:00
6fd7fe5b11
Using a short delay was sometimes not long enough to ensure that $sig2 was actually enabled before the signal was sent. Using a defer after enabling pushes the call to posix_kill() to the next tick. |
||
---|---|---|
src | ||
.gitignore | ||
composer.json | ||
LICENSE | ||
README.md |
Event Loop Tests
This package provides a quite extensive phpunit test suite to be used against Loop\Driver
implementations from the async-interop/event-loop package.
Usage
class MyDriverTest extends \Interop\Async\Loop\Test {
function getFactory() {
return new MyDriverFactory;
}
}
That's it. Put it in your tests folder with an appropriate phpunit setup and run it.