Skip to content

Commit 303d6a8

Browse files
committed
Add PHPUnit to require-dev
1 parent 582dc7b commit 303d6a8

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ built on top of [ReactPHP's SocketClient](https://github.com/reactphp/socket-cli
1717
* [Concurrent](#concurrent)
1818
* [Selective](#selective)
1919
* [Install](#install)
20+
* [Tests](#tests)
2021
* [License](#license)
2122

2223
## Introduction
@@ -207,6 +208,21 @@ $ composer require clue/connection-manager-extra:^0.5
207208

208209
See also the [CHANGELOG](CHANGELOG.md) for more details about version upgrades.
209210

211+
## Tests
212+
213+
To run the test suite, you first need to clone this repo and then install all
214+
dependencies [through Composer](http://getcomposer.org):
215+
216+
```bash
217+
$ composer install
218+
```
219+
220+
To run the test suite, go to the project root and run:
221+
222+
```bash
223+
$ php vendor/bin/phpunit
224+
```
225+
210226
## License
211227

212228
MIT

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@
1919
"react/event-loop": "^0.4 || ^0.3",
2020
"react/promise": "^2.1 || ^1.2",
2121
"react/promise-timer": "^1.1"
22+
},
23+
"require-dev": {
24+
"phpunit/phpunit": "^4.8"
2225
}
2326
}

0 commit comments

Comments
 (0)