Skip to content

Commit 96121df

Browse files
committed
Add PHPUnit to require-dev
1 parent d5618a6 commit 96121df

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
language: php
2+
23
php:
34
- 5.3
45
- 5.6
5-
- hhvm
6+
# - hhvm
7+
68
install:
7-
- composer install --prefer-source --no-interaction
9+
- composer install --no-interaction
10+
811
script:
9-
- phpunit --coverage-text
12+
- vendor/bin/phpunit --coverage-text

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ The recommended way to install this library is [through composer](http://getcomp
2020
}
2121
```
2222

23+
## Tests
24+
25+
To run the test suite, you first need to clone this repo and then install all
26+
dependencies [through Composer](http://getcomposer.org):
27+
28+
```bash
29+
$ composer install
30+
```
31+
32+
To run the test suite, go to the project root and run:
33+
34+
```bash
35+
$ php vendor/bin/phpunit
36+
```
37+
2338
## License
2439

2540
MIT

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
"react/event-loop": "~0.4.0|~0.3.0",
1919
"react/http": "~0.4.0|~0.3.0",
2020
"react/stream": "~0.4.0|~0.3.0"
21+
},
22+
"require-dev": {
23+
"phpunit/phpunit": "^4.8"
2124
}
2225
}

0 commit comments

Comments
 (0)