Skip to content

Commit 8b00112

Browse files
committed
Add PHPUnit to require-dev
1 parent 27b55a7 commit 8b00112

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ install:
1616
- composer install --prefer-source --no-interaction
1717

1818
script:
19-
- phpunit --coverage-text
19+
- vendor/bin/phpunit --coverage-text

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,21 @@ $launcher = new Launcher($loop);
327327
$launcher->setBin('/path/to/zenity');
328328
```
329329

330+
## Tests
331+
332+
To run the test suite, you first need to clone this repo and then install all
333+
dependencies [through Composer](https://getcomposer.org):
334+
335+
```bash
336+
$ composer install
337+
```
338+
339+
To run the test suite, go to the project root and run:
340+
341+
```bash
342+
$ php vendor/bin/phpunit
343+
```
344+
330345
## License
331346

332347
MIT

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"react/child-process": "~0.4.0|~0.3.0"
1818
},
1919
"require-dev": {
20-
"clue/block-react": "^1.1"
20+
"clue/block-react": "^1.1",
21+
"phpunit/phpunit": "^4.8"
2122
},
2223
"autoload": {
2324
"psr-4": { "Clue\\React\\Zenity\\": "src/" }

0 commit comments

Comments
 (0)