Skip to content

Commit 02f6af8

Browse files
committed
Add PHPUnit to require-dev
1 parent e94f087 commit 02f6af8

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ install:
1414
- composer install --no-interaction
1515

1616
script:
17-
- phpunit --coverage-text
17+
- vendor/bin/phpunit --coverage-text

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Streaming newline delimited JSON ([NDJSON](http://ndjson.org/)) parser and encod
88
* [Decoder](#decoder)
99
* [Encoder](#encoder)
1010
* [Install](#install)
11+
* [Tests](#tests)
1112
* [License](#license)
1213
* [More](#more)
1314

@@ -197,6 +198,20 @@ $ composer require clue/ndjson-react:^0.1
197198

198199
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
199200

201+
## Tests
202+
203+
To run the test suite, you first need to clone this repo and then install all dependencies [through Composer](http://getcomposer.org):
204+
205+
```bash
206+
$ composer install
207+
```
208+
209+
To run the test suite, go to the project root and run:
210+
211+
```bash
212+
$ php vendor/bin/phpunit
213+
```
214+
200215
## License
201216

202217
MIT

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"react/stream": "^0.4 || ^0.3"
1919
},
2020
"require-dev": {
21-
"react/event-loop": " ^0.4 || ^0.3"
21+
"react/event-loop": " ^0.4 || ^0.3",
22+
"phpunit/phpunit": "^4.8"
2223
}
2324
}

0 commit comments

Comments
 (0)