Skip to content

Commit 572c99b

Browse files
committedMay 27, 2016
Initial commit
0 parents  commit 572c99b

File tree

5 files changed

+929
-0
lines changed

5 files changed

+929
-0
lines changed
 

Diff for: ‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/vendor/
2+
/composer.lock

Diff for: ‎LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 PHP Asynchronous Interoperability Group
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Diff for: ‎README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Event Loop Tests
2+
3+
This package provides a quite extensive phpunit test suite to be used against `Loop\Driver` implementations from the [async-interop/event-loop](https://github.com/async-interop/event-loop) package.
4+
5+
## Usage
6+
7+
```php
8+
class MyDriverTest extends \Interop\Async\Loop\Test {
9+
function getFactory() {
10+
return new MyDriverFactory;
11+
}
12+
}
13+
```
14+
15+
That's it. Put it in your tests folder with an appropriate phpunit setup and run it.

Diff for: ‎composer.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "async-interop/event-loop-test",
3+
"description": "An abstract test file to ensure compatibility between event-loop implementations.",
4+
"keywords": ["event", "loop", "async", "interop", "test"],
5+
"license": "MIT",
6+
"require": {
7+
"php": ">=5.5.0",
8+
"async-interop/event-loop": "dev-master",
9+
"phpunit/phpunit": "^4|^5"
10+
},
11+
"autoload": {
12+
"psr-4": {
13+
"Interop\\Async\\Loop": "src"
14+
}
15+
}
16+
}

Diff for: ‎src/Test.php

+875
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.