Skip to content

Commit ba674c4

Browse files
committed
Add PHPUnit to require-dev
1 parent 47afc46 commit ba674c4

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ install:
1717
- composer install --no-interaction
1818

1919
script:
20-
- phpunit --coverage-text
20+
- vendor/bin/phpunit --coverage-text

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ It enables you to set and query its data or use its PubSub topics to react to in
3434
* [close()](#close)
3535
* [end()](#end)
3636
* [Install](#install)
37+
* [Tests](#tests)
3738
* [License](#license)
3839

3940
## Quickstart example
@@ -248,6 +249,21 @@ $ composer require "clue/redis-react:^1.0 || ^0.5"
248249

249250
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
250251

252+
## Tests
253+
254+
To run the test suite, you first need to clone this repo and then install all
255+
dependencies [through Composer](http://getcomposer.org):
256+
257+
```bash
258+
$ composer install
259+
```
260+
261+
To run the test suite, go to the project root and run:
262+
263+
```bash
264+
$ php vendor/bin/phpunit
265+
```
266+
251267
## License
252268

253269
MIT

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"psr-4": { "Clue\\React\\Redis\\": "src/" }
2323
},
2424
"require-dev": {
25-
"clue/block-react": "^1.1"
25+
"clue/block-react": "^1.1",
26+
"phpunit/phpunit": "^4.8"
2627
}
2728
}

0 commit comments

Comments
 (0)