Skip to content

Commit 3ea5e32

Browse files
committed
Add PHPUnit to require-dev
1 parent 72949ab commit 3ea5e32

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ php:
1111
sudo: false
1212

1313
install:
14-
- composer install --prefer-source --no-interaction
14+
- 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
@@ -43,6 +43,21 @@ $ composer require react/datagram:^1.1.1
4343

4444
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
4545

46+
## Tests
47+
48+
To run the test suite, you first need to clone this repo and then install all
49+
dependencies [through Composer](http://getcomposer.org):
50+
51+
```bash
52+
$ composer install
53+
```
54+
55+
To run the test suite, go to the project root and run:
56+
57+
```bash
58+
$ php vendor/bin/phpunit
59+
```
60+
4661
## License
4762

4863
MIT

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"react/promise": "~2.1|~1.2"
2222
},
2323
"require-dev": {
24-
"clue/block-react": "~1.0"
24+
"clue/block-react": "~1.0",
25+
"phpunit/phpunit": "^4.8"
2526
}
2627
}

0 commit comments

Comments
 (0)