async-interop/event-loop-test

一个抽象测试文件,以确保事件循环实现之间的兼容性。

v0.5.1 2017-01-08 16:56 UTC

This package is not auto-updated.

Last update: 2024-09-14 19:36:39 UTC


README

此包提供了一组相当广泛的phpunit测试套件,用于针对来自async-interop/event-loop包的Loop\Driver实现进行测试。

使用方法

class MyDriverTest extends \AsyncInterop\Loop\Test {
    function getFactory() {
        return new MyDriverFactory;
    }
}

就是这样。将它放入您的测试文件夹中,并使用适当的phpunit设置运行。