1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 12:35:02 +01:00
Go to file
Aaron Piotrowski 6fd7fe5b11 Call posix_kill() in defer for better consistency
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.
2016-06-07 12:31:49 -05:00
src Call posix_kill() in defer for better consistency 2016-06-07 12:31:49 -05:00
.gitignore Initial commit 2016-05-27 03:25:55 +02:00
composer.json Fix autoloader namespace 2016-05-27 14:55:19 -05:00
LICENSE Initial commit 2016-05-27 03:25:55 +02:00
README.md Initial commit 2016-05-27 03:25:55 +02:00

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.